Guest User

Untitled

a guest
Jun 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. if (!empty($_POST['username']) != NULL && !empty($_POST['userpassword']) != NULL) {
  2. // login check here
  3. $username = $_POST['username'];
  4. $userpassword = $_POST['userpassword'];
  5. $username = $protect->protect1($username);
  6. $userpassword = $protect->protect1($userpassword);
  7. $kd45 = "jbstbb5rv34v43v44";
  8. $query = mysql_fetch_array(mysql_query("select * from accounts where accname = '$username'")) or die('Query failed: ' . mysql_error());
  9. $kd44 = $query['rndnum'];
  10. $kd47 = str_split($kd45, $kd44);
  11. $pass = "$username$kd47[0]$userpassword$kd47[1]";
  12. $password = md5($pass);
  13. $result = mysql_query("select * from accounts where accname = '$username' and password = '$password'") or die('Query failed: ' . mysql_error());
Add Comment
Please, Sign In to add comment