Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Begin the session!
- session_start();
- // Now for this page, we want to use the database, so let's get the database ready.
- include('mysql_connect.php');
- include('includes/settings.php');
- include('includes/system.php');
- include('includes/functions.php');
- /**
- * Now, seeing as we have all the content set,
- * let's get this page up by showing the template!
- */
- global $username;
- if(isset($_SESSION['user_name'])) {
- global $username;
- $username = $_SESSION['user_name'];
- }
- if(isset($_GET['page'])){
- $page = $_GET['page'];
- } else {
- $page = '';
- }
- main($page, $username);
- template();
- /**
- * Well seeing as this is the end of the page,
- * let's clean some thing up so there's no nasty surprises.
- */
- ?>
Add Comment
Please, Sign In to add comment