Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $user = $_POST['user'];
  2. $pass = $_POST['pass'];
  3.  
  4. if ($user == mysql_real_escape_string($user) && $user<>"" ) {
  5. $pass=encryptData($pass); // a nice encrypted password :)
  6. } else {
  7. showLoginScreen(true); // the login failed!
  8. }
  9.  
  10. $SQL = "SELECT * FROM `users`
  11. WHERE password='".$pass."' AND
  12. username='".$user."';";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement