Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01
- Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>Main</title>
- <link rel="stylesheet" type="text/css" href="mainstudent.css" />
- </head>
- <body>
- <?php
- // suppress notice messages
- error_reporting(E_ALL ^ E_NOTICE);
- session_start();
- // if the user is not same user that logged in then it redirect to login page
- if(!isset( $_SESSION['myusername'])){
- header("location:signinstudent.php");
- exit;
- }
- echo "<div class=\"container\"><ul> <li><a href=\"mainstudent.php\">Home</a></li>
- <li><a href=\"newstudent.php\">News</a></li>
- <li><a href=\"profilestudent.php\">Profile</a></li>
- <li><a href=\"accountstudent.php\">Account</a></li>
- <li><a href=\"logoutstudent.php\">Log Out</a></li>
- </ul>
- Welcome " .$_SESSION['myusername']. "!, Today is: " .date("Y/m/d")."</div><br />";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement