Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- // Call this function so your page
- // can access session variables
- if ($_SESSION['loggedin'] != 1) {
- // If the 'loggedin' session variable
- // is not equal to 1, then you must
- // not let the user see the page.
- // So, we'll redirect them to the
- // login page (login.php).
- header("Location: login.php");
- exit;
- }
- echo "<!DOCTYPE html>";
- echo "<html>";
- echo "<body>";
- echo '<table border="1">';
- $filecontents = file_get_contents("logs.txt");
- echo $filecontents;
- echo "</table>";
- echo "</body>";
- echo "</html>";
- ?>
- <META HTTP-EQUIV="refresh" CONTENT="5">
- <strong>Page auto Refreshes</strong>
- <form action="http://dev.usa-universe.org/logout.php" method="post">
- <input type='submit' name='submit' value='LOGOUT' class='logout' />
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement