Guest User

Untitled

a guest
Jul 5th, 2018
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2.  
  3. $host = "localhost";
  4. $user = "Hax";
  5. $pass = "YES";
  6. $name = "login";
  7.  
  8. $_GET['name'] = str_replace("_"," ",$_GET['name']);
  9. if($_GET['crypt'] !=102510){
  10. echo '-1';
  11. exit;
  12. }
  13. if(!@mysql_connect($host, $user, $pass)) {
  14. die("error connecting to mysql server - " . mysql_error());
  15. }
  16. if(!@mysql_select_db($name)) {
  17. die("error selecting mysql database - " . mysql_error());
  18. }
  19.  
  20. $query = mysql_query("SELECT * FROM users WHERE username = '".$_GET['name']."'");
  21. if($row = mysql_fetch_array($query)){
  22. $mem = "420"
  23. $pass2 = md5($_GET['pass']);
  24. if($row['ismem'] == $mem)
  25. echo '2';
  26. else
  27. echo '1';
  28. } else
  29. echo '666';
  30.  
  31. if($pass2 == $row["password"] )
  32. echo '2';
  33. else
  34. echo '1';
  35. } else
  36. echo '666';
  37.  
  38.  
  39. ?>
Add Comment
Please, Sign In to add comment