瀏覽代碼

cleaned up preferences for production use

pull/16/head
mauirixxx 7 年之前
父節點
當前提交
d14d47e75d
共有 1 個文件被更改,包括 2 次插入10 次删除
  1. +2
    -10
      preferences.php

+ 2
- 10
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!)<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>';


Loading…
取消
儲存