Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Não pode escolher mais do que 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- <?php
- $pagetitle = "Account options";
- include_once ('header.php');
-
- if (!empty($_POST['useremail'])) {
- //this section contains code to update the users e-mail address
- include_once ('includes/update-email.php');
- }
-
- if (!empty($_POST['oldpass'])) {
- // this section contains code to update the users password after verifying the old password first
- include_once ('includes/update-password.php');
- }
-
- echo '<h3>Change e-mail or password</h3>';
-
- // select which GW account you want to default to
- # needed code: select accid from table gwaccounts, store it in prefacc in table userinfo
-
- // select which character from your GW account you want to default to
- # needed code: select charrid from table gwchars selected by accid
-
- // update e-mail address form
- echo '<form action="preferences.php" method="post"><table border="1">';
- echo '<caption>Update e-mail address</caption>';
- echo '<tr><td><input type="text" name="useremail" value="' . $_SESSION['usermail'] . '"></td><td><input type="submit" value="Update e-mail"></td></tr>';
- echo '</table></form><br /><br />';
-
- // update password form
- echo <<<UPDPASS
- <form action="preferences.php" method="post"><table border="1">
- <tr><th>Old Password</th><tr>
- <tr><td><input type="password" name="oldpass" required></td></tr>
- <tr><th>New password</th></tr>
- <tr><td><input type="password" required="required" name="userpass1" id="up1"></td></tr>
- <tr><th>Verify password</th></tr>
- <tr><td><input type="password" required="required" name="userpass2" id="up2"></td></tr>
- </table><script type="text/javascript">
- function Validate() {
- var userpass1 = document.getElementById("up1").value;
- var userpass2 = document.getElementById("up2").value;
- if (userpass1 != userpass2) {
- alert("Passwords do not match.");
- return false;
- }
- return true;
- }
- </script>
- <input type="submit" name="submission" value="Update password" onclick="return Validate()" id="btnSubmit"></form>
- UPDPASS;
- include_once ('footer.php');
- ?>
|