Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $adminUsername = "root";
- $adminPassword = "toor";
- $usernameAdmin = htmlspecialchars($_POST['usernameAdmin']);
- $passwordAdmin = htmlspecialchars($_POST['passwordAdmin']);
- if(isset($usernameAdmin) && ($passwordAdmin) && ($usernameAdmin == $adminUsername) && ($passwordAdmin == $adminPassword))
- {
- session_start();
- $_SESSION['login'] = $_SERVER['REMOTE_ADDR'];
- header("Location: index.php");
- }
- else
- {
- $counter = "0";
- session_start();
- $_SESSION['counter'] = $counter++;
- if($counter >= "4")
- {
- print"VAI VIA LAMER!!!";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment