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.
 
 
 
 
 

41 Zeilen
1.3 KiB

  1. <!DOCTYPE html>
  2. <HTML>
  3. <HEAD>
  4. <link rel="stylesheet" type="text/css" href="style.css">
  5. <TITLE>Logging in</TITLE>
  6. </HEAD>
  7. <BODY>
  8. <CENTER>
  9. <?php
  10. include_once ('connect.php');
  11. $con = mysqli_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
  12. if (session_status() == PHP_SESSION_NONE) {
  13. session_start();
  14. }
  15. $username = mysqli_real_escape_string($con, $_POST['username']);
  16. $password = $_POST['password'];
  17. if ($con->connect_errno > 0){
  18. die ('Unable to connect to database [' . $db->connect_errno . ']');
  19. }
  20. $sqluname = "select * from userinfo where username = '$username'";
  21. $result = mysqli_query($con, $sqluname);
  22. $row = mysqli_fetch_row ($result);
  23. $verifypass = password_verify ($password,$row[2]);
  24. if ($verifypass) {
  25. $_SESSION['userid'] = $row[0];
  26. $_SESSION['username'] = $row[1];
  27. $_SESSION['usermail'] = $row[3];
  28. $_SESSION['admin'] = $row[4];
  29. $_SESSION['prefaccid'] = $row[5];
  30. $_SESSION['prefaccname'] = $row[6];
  31. $_SESSION['prefcharid'] = $row[7];
  32. $_SESSION['prefcharname'] = $row[8];
  33. include_once ('header.php');
  34. header("refresh:1;url=index.php");
  35. echo '<center>You have successfully logged in!<br />';
  36. } else {
  37. echo 'The username or password provided don\'t match!<br />Please <a href="index.php" class="navlink">try again</a><br />';
  38. exit();
  39. }
  40. ?>