Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <?php
  2. $valid_passwords = array ('test' = 'test');
  3. $valid_users = array_keys($valid_passwords);
  4.  
  5. $user = $_SERVER['bomberman'];
  6. $pass = $_SERVER['mailbomb1'];
  7.  
  8. $validated = (in_array($user, $valid_users)) && ($pass == $valid_passwords[$user]);
  9.  
  10. if (!$validated) {
  11. header("WWW-Authenticate: Basic realm='PomBuSla'");
  12. header('HTTP/1.0 401 Unauthorized');
  13. die ("Not authorized");
  14. }
  15. ?>
  16.  
  17. <html>
  18. <head><title>Pomsta bude sladká</title>
  19. <body bgcolor="black">
  20. <style type="text/css">
  21. body,td,th {
  22. color: #00CC00;
  23. }
  24. </style>
  25. <div align=center>
  26. <form action="mailb.php" method="post">
  27. </br>
  28. </br>
  29. Obet:</br><input type="text" name="to"></input>
  30. </br>
  31. </br>
  32. Kolik:</br><input type="text" name="amount"></input>
  33. </br>
  34. </br>
  35. Predmet:</br><input type="text" name="subject"></input>
  36. </br>
  37. </br>
  38. Od koho:</br><input type="text" name="from"></input>
  39. </br>
  40. </br>
  41. Zprava:</br><input type="text" name="message"></input>
  42. </br>
  43. <input type="submit" value="Odešli!"></input>
  44. </br>
  45. <input type="reset" value="Smaž všechno!">
  46. </form>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement