Guest User

Untitled

a guest
Jul 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2. // Begin the session!
  3. session_start();
  4.  
  5. // Now for this page, we want to use the database, so let's get the database ready.
  6. include('mysql_connect.php');
  7. include('includes/settings.php');
  8. include('includes/system.php');
  9. include('includes/functions.php');
  10.  
  11. /**
  12. * Now, seeing as we have all the content set,
  13. * let's get this page up by showing the template!
  14. */
  15.  
  16. global $username;
  17. if(isset($_SESSION['user_name'])) {
  18. global $username;
  19. $username = $_SESSION['user_name'];
  20. }
  21.  
  22. if(isset($_GET['page'])){
  23. $page = $_GET['page'];
  24. } else {
  25. $page = '';
  26. }
  27.  
  28. main($page, $username);
  29.  
  30. template();
  31.  
  32. /**
  33. * Well seeing as this is the end of the page,
  34. * let's clean some thing up so there's no nasty surprises.
  35. */
  36.  
  37. ?>
Add Comment
Please, Sign In to add comment