Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4. // Call this function so your page
  5. // can access session variables
  6.  
  7. if ($_SESSION['loggedin'] != 1) {
  8. // If the 'loggedin' session variable
  9. // is not equal to 1, then you must
  10. // not let the user see the page.
  11. // So, we'll redirect them to the
  12. // login page (login.php).
  13.  
  14. header("Location: login.php");
  15.  
  16.  
  17. exit;
  18. }
  19.  
  20. echo "<!DOCTYPE html>";
  21. echo "<html>";
  22. echo "<body>";
  23. echo '<table border="1">';
  24.  
  25.  
  26.  
  27.  
  28. $filecontents = file_get_contents("logs.txt");
  29. echo $filecontents;
  30.  
  31.  
  32. echo "</table>";
  33. echo "</body>";
  34. echo "</html>";
  35.  
  36.  
  37.  
  38.  
  39.  
  40. ?>
  41.  
  42. <META HTTP-EQUIV="refresh" CONTENT="5">
  43. <strong>Page auto Refreshes</strong>
  44.  
  45. <form action="http://dev.usa-universe.org/logout.php" method="post">
  46. <input type='submit' name='submit' value='LOGOUT' class='logout' />
  47. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement