Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2. //Config's make life soo mutch easier!
  3. require_once('/config/config.php') or die('You fucked up genius!');
  4.  
  5. //Store username and pw
  6. $pusername = $_POST['username'];
  7. $ppassword = $_POST['password'];
  8.  
  9. //Security FOOL
  10. $pusername = addslashes($pusername);
  11. $ppassword = addslashes($ppassword);
  12.  
  13. //Light encryption (we wana dehash to blackmail ;) !)
  14. $ppassword = md5($ppassword);
  15.  
  16. //Connect
  17. $con = mysql_connect($dHost, $dUsername, $dPassword);
  18.  
  19. //Select database
  20. mysql_select_db($database, $con);
  21.  
  22. //Create Query
  23. $query = "SELECT * FROM 'Logins' WHERE username='$pusername' AND password='$ppassword'";
  24.  
  25. //Confirm Login
  26. if(mysql_num_rows($query) > 0)
  27. {
  28. }else{
  29. }
  30.  
  31. //Close (or bad things happen...)
  32. mysql_close($con);
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement