From d14d47e75d9e44c9aa10097f2c9527db8c09eec3 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 8 Aug 2018 15:29:48 -1000 Subject: [PATCH] cleaned up preferences for production use --- preferences.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/preferences.php b/preferences.php index ad81fb0..7050a4c 100644 --- a/preferences.php +++ b/preferences.php @@ -3,25 +3,17 @@ $pagetitle = "Account options"; include_once ('header.php'); if (!empty($_POST['useremail'])) { - //this section contains code to update the users e-mail address, maybe via an include? + //this section contains code to update the users e-mail address include_once ('includes/update-email.php'); } if (!empty($_POST['oldpass'])) { - echo 'if the oldpass is set, execute code here (this line will go away from preferences.php!)
'; + // this section contains code to update the users password after verifying the old password first include_once ('includes/update-password.php'); -} else { - echo 'if post oldpass is NOT set, then this else statement can go away.
'; } echo '

Change e-mail or password

'; -// listing all session variables currently set for debugging purposes -echo '
';
-var_dump($_SESSION);
-echo '

'; -// delete the above 3 lines when done - // update e-mail address form echo '
'; echo '';
Update e-mail address