diff --git a/preferences.php b/preferences.php index 4be2289..dc9d96e 100644 --- a/preferences.php +++ b/preferences.php @@ -12,26 +12,24 @@ if (!empty($_POST['oldpass'])) { include_once ('includes/update-password.php'); } -if (!empty($_POST['prefacc'])) { +if (!empty($_POST['setacc'])) { //this section contains code to set the users preferred game account - #include_once ('includes/set-prefacc.php'); - echo 'this line will go away once the include file is completed!
'; + include_once ('includes/set-prefacc.php'); } 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 '
Current preferred account: ' .$_SESSION['prefaccname'] . '

'; +echo '

'; // select which character from your GW account you want to default to # needed code: select charrid from table gwchars selected by accid