From 460efcdfaf29a07310bd1f6d74e0d212fc25935d Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 24 May 2017 20:20:34 -1000 Subject: [PATCH] attempting a login form first crack --- gw-index.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gw-index.php b/gw-index.php index e59b80c..aa512c7 100644 --- a/gw-index.php +++ b/gw-index.php @@ -1,8 +1,11 @@ connect_errno > 0){ - die ('Unable to connect to database [' . $db->connect_errno . ']'); -} +session_start(); +if (isset($_SESSION['userid']) && ($_SESSION['access'])){ + echo 'Proceed to character selection here
'; //really should automate this +} else { + echo 'Login Required'; + echo '
Username:
'; + echo 'Password:
'; + echo '
'; ?>