Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.7 KiB

  1. <?php
  2. $pagetitle = "Account options";
  3. include_once ('header.php');
  4. if (!empty($_POST['useremail'])) {
  5. //this section contains code to update the users e-mail address
  6. include_once ('includes/update-email.php');
  7. }
  8. if (!empty($_POST['oldpass'])) {
  9. // this section contains code to update the users password after verifying the old password first
  10. include_once ('includes/update-password.php');
  11. }
  12. echo '<h3>Change e-mail or password</h3>';
  13. // update e-mail address form
  14. echo '<form action="preferences.php" method="post"><table border="1">';
  15. echo '<caption>Update e-mail address</caption>';
  16. echo '<tr><td><input type="text" name="useremail" value="' . $_SESSION['usermail'] . '"></td><td><input type="submit" value="Update e-mail"></td></tr>';
  17. echo '</table></form><br /><br />';
  18. // update password form
  19. echo <<<UPDPASS
  20. <form action="preferences.php" method="post"><table border="1">
  21. <tr><th>Old Password</th><tr>
  22. <tr><td><input type="password" name="oldpass" required></td></tr>
  23. <tr><th>New password</th></tr>
  24. <tr><td><input type="password" required="required" name="userpass1" id="up1"></td></tr>
  25. <tr><th>Verify password</th></tr>
  26. <tr><td><input type="password" required="required" name="userpass2" id="up2"></td></tr>
  27. </table><script type="text/javascript">
  28. function Validate() {
  29. var userpass1 = document.getElementById("up1").value;
  30. var userpass2 = document.getElementById("up2").value;
  31. if (userpass1 != userpass2) {
  32. alert("Passwords do not match.");
  33. return false;
  34. }
  35. return true;
  36. }
  37. </script>
  38. <input type="submit" name="submission" value="Update password" onclick="return Validate()" id="btnSubmit"></form>
  39. UPDPASS;
  40. include_once ('footer.php');
  41. ?>