Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $valid_passwords = array ('test' = 'test');
- $valid_users = array_keys($valid_passwords);
- $user = $_SERVER['bomberman'];
- $pass = $_SERVER['mailbomb1'];
- $validated = (in_array($user, $valid_users)) && ($pass == $valid_passwords[$user]);
- if (!$validated) {
- header("WWW-Authenticate: Basic realm='PomBuSla'");
- header('HTTP/1.0 401 Unauthorized');
- die ("Not authorized");
- }
- ?>
- <html>
- <head><title>Pomsta bude sladká</title>
- <body bgcolor="black">
- <style type="text/css">
- body,td,th {
- color: #00CC00;
- }
- </style>
- <div align=center>
- <form action="mailb.php" method="post">
- </br>
- </br>
- Obet:</br><input type="text" name="to"></input>
- </br>
- </br>
- Kolik:</br><input type="text" name="amount"></input>
- </br>
- </br>
- Predmet:</br><input type="text" name="subject"></input>
- </br>
- </br>
- Od koho:</br><input type="text" name="from"></input>
- </br>
- </br>
- Zprava:</br><input type="text" name="message"></input>
- </br>
- <input type="submit" value="Odešli!"></input>
- </br>
- <input type="reset" value="Smaž všechno!">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement