Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2012
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01
  2. Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3.  
  4. <html>
  5. <head>
  6. <title>Main</title>
  7.  
  8. <link rel="stylesheet" type="text/css" href="mainstudent.css" />
  9.  
  10. </head>
  11.  
  12. <body>
  13.  
  14.  
  15. <?php
  16. // suppress notice messages
  17. error_reporting(E_ALL ^ E_NOTICE);
  18.  
  19.  
  20. session_start();
  21. // if the user is not same user that logged in then it redirect to login page
  22. if(!isset( $_SESSION['myusername'])){
  23. header("location:signinstudent.php");
  24. exit;
  25. }
  26. echo "<div class=\"container\"><ul> <li><a href=\"mainstudent.php\">Home</a></li>
  27. <li><a href=\"newstudent.php\">News</a></li>
  28. <li><a href=\"profilestudent.php\">Profile</a></li>
  29. <li><a href=\"accountstudent.php\">Account</a></li>
  30. <li><a href=\"logoutstudent.php\">Log Out</a></li>
  31. </ul>
  32. Welcome " .$_SESSION['myusername']. "!, Today is: " .date("Y/m/d")."</div><br />";
  33.  
  34.  
  35.  
  36. ?>
  37.  
  38.  
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement