Advertisement
Guest User

Untitled

a guest
May 2nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang="en" dir="ltr">
  7. <head>
  8. <meta charset="utf-8">
  9. <title></title>
  10. </head>
  11. <body>
  12. <div id="wrapper">
  13. <h2>Nigger, dis a forum yeeeeet</h2>
  14. <p>niggers arent allowed</p>
  15.  
  16. <?php
  17. if(!isset($_SESSION['uid'])){
  18. echo "<form action='login_parse.php' method='post'>
  19. Username: <input type='text' name='realname' />&nbsp;
  20. Password: <input type='password' name='password' />&nbsp;
  21. <input type='submit' name='submit' value='Log In'/>";
  22.  
  23.  
  24.  
  25. }else {
  26. echo "<p>You are logged in as ".$_SESSION['realname']."&bull; <a href='logout_parse.php'>Logout</a>";
  27. }
  28. ?>
  29. </div>
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement