Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

23 righe
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. ?>