Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?php
  2. $username = "bas";
  3. $password = "admin";
  4. $nonsense = "supercalifragilisticexpialidocious";
  5. setcookie("PrivatePageLogin", "", time()-3600);
  6.  
  7. if (isset($_COOKIE['PrivatePageLogin'])) {
  8.    if ($_COOKIE['PrivatePageLogin'] == md5($password.$nonsense)) {
  9.    
  10. ?>
  11.  
  12.     <!-- LOGGED IN CONTENT HERE -->
  13. <?php
  14.  
  15. $con = mysqli_connect("localhost","id4660423_baswortman","csgobas","id4660423_users");
  16.  
  17. // Check connection
  18.  
  19. if (mysqli_connect_errno())
  20.  
  21. {
  22.  
  23.     die("Failed to connect to MySQL: " . mysqli_connect_error());
  24.  
  25. }
  26.  
  27.  
  28.  
  29. if (!$result = mysqli_query($con,"SELECT * FROM csgo"))
  30.  
  31. {
  32.  
  33.     die("Error: " . mysqli_error($con));
  34.  
  35. }
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement