diff --git a/login.php b/login.php index 6c80c33..5427746 100644 --- a/login.php +++ b/login.php @@ -27,6 +27,10 @@ if ($verifypass) { $_SESSION['username'] = $row[1]; $_SESSION['usermail'] = $row[3]; $_SESSION['admin'] = $row[4]; + $_SESSION['prefaccid'] = $row[5]; + $_SESSION['prefaccname'] = $row[6]; + $_SESSION['prefcharid'] = $row[7]; + $_SESSION['prefcharname'] = $row[8]; include_once ('header.php'); header("refresh:1;url=index.php"); echo '
You have successfully logged in!
'; diff --git a/preferences.php b/preferences.php index b8d6872..4be2289 100644 --- a/preferences.php +++ b/preferences.php @@ -22,7 +22,8 @@ echo '

Change e-mail or password

'; // select which GW account you want to default to # needed code: select accid from table gwaccounts, store it in prefacc in table userinfo echo '
'; -echo '
Preferred GW account
'; +echo '
'; // select which character from your GW account you want to default to # needed code: select charrid from table gwchars selected by accid