Sfoglia il codice sorgente

cleaned up preferences for production use

pull/16/head
mauirixxx 7 anni fa
parent
commit
d14d47e75d
1 ha cambiato i file con 2 aggiunte e 10 eliminazioni
  1. +2
    -10
      preferences.php

+ 2
- 10
preferences.php Vedi File

@@ -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!)<br />';
// 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.<br />';
}

echo '<h3>Change e-mail or password</h3>';

// listing all session variables currently set for debugging purposes
echo '<pre>';
var_dump($_SESSION);
echo '</pre><br />';
// delete the above 3 lines when done

// update e-mail address form
echo '<form action="preferences.php" method="post"><table border="1">';
echo '<caption>Update e-mail address</caption>';


Caricamento…
Annulla
Salva