Guest User

Untitled

a guest
Oct 16th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. $adminUsername = "root";
  3. $adminPassword = "toor";
  4. $usernameAdmin = htmlspecialchars($_POST['usernameAdmin']);
  5. $passwordAdmin = htmlspecialchars($_POST['passwordAdmin']);
  6. if(isset($usernameAdmin) && ($passwordAdmin) && ($usernameAdmin == $adminUsername) && ($passwordAdmin == $adminPassword))
  7. {
  8. session_start();
  9. $_SESSION['login'] = $_SERVER['REMOTE_ADDR'];
  10. header("Location: index.php");
  11. }
  12. else
  13. {
  14. $counter = "0";
  15. session_start();
  16. $_SESSION['counter'] = $counter++;
  17. if($counter >= "4")
  18. {
  19. print"VAI VIA LAMER!!!";
  20. }
  21. }
  22. ?>
Add Comment
Please, Sign In to add comment