Advertisement
steven00o

protected dot php

Mar 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. <html>
  2. <html>
  3. <title>protected web page</title>
  4. </head>
  5. <?php>
  6. session_start();
  7. if($_SESSION['login']!="OK")
  8. {
  9. header('Location:login.html');
  10. exit();
  11. }
  12. ?>
  13. <body>
  14. <h1>Protected Web Page</h1>
  15. <?php
  16. echo "<p>you have successfully logged in!</p>";
  17. echo "<p>your username is:";
  18. echo $_SESSION['username'];
  19. echo "<br/>";
  20. echo "your password is:";
  21. echo $_SESSION['password'];
  22. echo "</p>";
  23. ?>
  24. <form>
  25. <input class="MyButton" type="button" value="Screen Resolution" onclick="window.location.href='resolution.php'" />
  26. </form>
  27. <form>
  28. <input class="MyButton" type="button" value="Browser Dectection" onclick="window.location.href='browser.php'" />
  29. </form>
  30. <form>
  31. <input class="MyButton" type="button" value="create user" onclick="window.location.href='create_user.php'" />
  32. </form>
  33. <br>
  34. <br>
  35. <form>
  36. <input class="MyButton" type="button" value="Logout" onclick="window.location.href='logout.php'" />
  37. </form>
  38. </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement