index.php 1.11 KB
Newer Older
nextime's avatar
nextime committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
<? include("includes/common.php"); 
ob_start(); 
include("parts/head.php");
$PAGE_BUFFER['head'] = ob_get_clean(); 

ob_start();
include("parts/alerts.php");
$PAGE_BUFFER['alerts'] = ob_get_clean();


ob_start(); 
include("parts/navbar.php");
$PAGE_BUFFER['navbar'] = ob_get_clean();

ob_start();
if($left)
  include("left/$GUISECTION.php");
$PAGE_BUFFER['left_drawer'] = ob_get_clean();

ob_start();
if($right)
  include("right/$GUISECTION.php");
$PAGE_BUFFER['right_drawer'] = ob_get_clean();

ob_start();
if($GUIPATH=='/')
  include("pages/index.php");
else
{
  if(file_exists("pages/$GUISECTION.php"))
    include("pages/$GUISECTION.php");
  else
    include("pages/404.php");
}
$PAGE_BUFFER['content'] = ob_get_clean();

ob_start();
include("parts/footbar.php");
$PAGE_BUFFER['footbar'] = ob_get_clean();

ob_start();
include("parts/foot.php");
$PAGE_BUFFER['foot'] = ob_get_clean();

ob_start();
if(file_exists("footjs/$GUISECTION.php"))
  include("footjs/$GUISECTION.php");
$PAGE_BUFFER['footjs'] = ob_get_clean();
if(file_exists("heads/$GUISECTION.php"))
   addHead("heads/$GUISECTION.php");
include_once("includes/page.php");?>