From 6bed38654eed7589f2f25bceb6ae00e6acc3a41e Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Thu, 9 Aug 2018 13:13:59 -1000 Subject: [PATCH] completed game account preferrence setting --- preferences.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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