daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jun 30th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. // Connection details
  4.  
  5. $dbhost = "db4free.net"; //!! localhost or the ip of the server
  6.  
  7. $dbname = ""; //!! name of the database
  8.  
  9. $dbuser = ""; //!! username
  10.  
  11. $dbpass = ""; //!! password
  12.  
  13.  
  14.  
  15. $user = addslashes($_GET['username']);
  16. $hwid = addslashes($_GET['hwid']);
  17. $pass = addslashes($_GET['password']);
  18.  
  19.  
  20.  
  21. mysql_connect($dbhost, $dbuser, $dbpass)or die("3");
  22.  
  23. $verb = mysql_select_db($dbname);
  24.  
  25.  
  26.  
  27. if ($verb)
  28.  
  29. {
  30.  
  31.     $sql = "SELECT * FROM Users WHERE HWID='".$hwid."'";
  32.  
  33.     $quer = mysql_query($sql) or die("4");
  34.  
  35.     $num = mysql_num_rows($quer);
  36.  
  37.     if ($num == 0)
  38.  
  39.     {
  40.  
  41.     echo("0");
  42.  
  43.     exit();
  44.  
  45.     }
  46.  
  47.     else
  48.  
  49.     {
  50.  
  51.     echo("123456");
  52.  
  53.     exit();
  54.  
  55.         }
  56.  
  57.      
  58.  
  59. }
  60.  
  61. mysql_close();
  62.  
  63. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top