Advertisement
wandrake

Untitled

Feb 28th, 2012
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.52 KB | None | 0 0
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4.  
  5. <?php session_start(); ?>
  6. <?php require_once("./include/dbconnect.php"); ?>
  7. <?php include("./include/head.php"); ?>
  8.  
  9.     <body>
  10.         <div id="wrapper">
  11.             <?php
  12.                 // Including header
  13.                 include ("./include/header.php");
  14.                
  15.                 // Including menu
  16.                 include ("./include/menu.php");
  17.                
  18.                 if ($_GET['errmsg'] || $_POST['errmsg']) {
  19.                     include("./include/errorbox.php");
  20.                 }
  21.                
  22.                 // Including home content
  23.                 include ("./pages/home.php");
  24.             ?>
  25.  
  26.             <!--?php
  27.                 //error_reporting(0);
  28.  
  29.                 $page = $_GET["page"];
  30.                 if ( ! $page ) {
  31.                     $page = "home";
  32.                 }
  33.                 if ( ! file_exists ("pages/" . $page . ".php") ) {
  34.                     include ("pages/not_available.php");
  35.                 } else {
  36.                     include ("pages/". $page . ".php");
  37.                 }
  38.                
  39.             ?-->
  40.  
  41.             <?php
  42.                 // Including bottom
  43.                 include ("./include/bottom.php");
  44.             ?>
  45.         </div>
  46.        
  47.     <?php
  48.         // Including footer
  49.         include ("./include/footer.php");
  50.     ?>
  51.     </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement