Advertisement
Guest User

Untitled

a guest
Jul 8th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?PHP
  2. $username = mysql_real_escape_string( $_POST['username'] );
  3. $password = md5(sha1(md5(md5(sha1( mysql_real_escape_string($_POST['password']))))));
  4. $sql = mysql_query("INSERT INTO users (username, password) VALUES ( '$username', '$password')");
  5. $bot = mysql_real_escape_string( $_POST['bot'] );
  6. if ( $bot != htmlspecialchars(13) )
  7. {
  8.  
  9. echo 'Mathematical sum correct! Wow! You are good in maths!<br />';
  10. echo "You have been registered!";
  11.  
  12. }
  13. else
  14. {
  15.  
  16. echo 'Sorry. You got the mathematical sum wrong. How bad are you in math?';
  17.  
  18. }
  19. mysql_close($core);
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement