Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

23 Zeilen
830 B

  1. <?php
  2. if (isset($_SESSION['userid'])) {
  3. include_once ('verifications.php');
  4. $verifypass = $con->prepare("SELECT userpass FROM userinfo WHERE userid = ?");
  5. $verifypass->bind_param("i", $_SESSION['userid']);
  6. $verifypass->execute();
  7. $result = $verifypass->get_result();
  8. while ($row = $result->fetch_assoc()) {
  9. $vp = password_verify ($_POST['oldpass'],$row['userpass']);
  10. if ($vp) {
  11. $hp = password_hash($_POST['userpass1'], PASSWORD_DEFAULT);
  12. echo 'Verified old password, updating to new password!<br />';
  13. $updpass = $con->prepare("UPDATE userinfo SET userpass = ? WHERE userid = ?");
  14. $updpass->bind_param("si", $hp, $_SESSION['userid']);
  15. $updpass->execute();
  16. echo 'Password updated!<br />';
  17. $updpass->close();
  18. } else {
  19. echo 'Old password doesn\'t match, password is NOT updated!<br />';
  20. }
  21. }
  22. }
  23. ?>