ob_start();
session_start();
include ($_SERVER['DOCUMENT_ROOT'].'/vipCMS/config/config.php');
//index.php
//turn off notice error reporting as it is annoying
error_reporting(E_ALL ^ E_NOTICE);
//load up css/head info
include ($_SERVER['DOCUMENT_ROOT'].'/vipCMS/commonV2/functions.php');
//start timer
$start= getmicrotime();
if ($_GET['a']=="deliverFile" && is_numeric($_GET['id']) && isset($_SESSION['siteIDname'])) {
//this is to avoid sending any output as we need to change the headers
include ($_SERVER['DOCUMENT_ROOT'].'/vipCMS/commonV2/deliverFile.php');
die ();
}
include($_SERVER['DOCUMENT_ROOT'].'/vipCMS/commonV2/sql.php');
?>
print "".$site['title']."\n";
print "\n";
//Get the right css File
if (preg_match("/^\*/",$site['cssFile'])) {
$site['cssFile']=preg_replace("/^\*/", "", $site['cssFile']);
$cssroot="css/{$site['cssFile']}";
} else if ($site['cssFile']) {
$cssroot="/vipCMS/css/{$site['cssFile']}";
} else {
$cssroot="/vipCMS/css/blue.css";
}
print "\n";
print $javascript;
if ($_SESSION['newUser']) {
include ($_SERVER['DOCUMENT_ROOT'].'/vipCMS/commonV2/topMenu.php');
}
?>
//-----------------------------------------Logged In from-------------------------------------------------------------------
if ($_SESSION['newUser']) {
$remoteIP=getenv("REMOTE_ADDR");
$headermenu= <<
Logged In From: ($remoteIP) as: {$_SESSION['newUser']->username} (Logout)