ob_start("ob_gzhandler");
date_default_timezone_set("Australia/Brisbane");
session_name("cms");
session_start();
// ------------ MASTER VARIABLES
$cmsroot = "/home/xsys/public_html/_cms";
$m_host = "xsys.com.au";
$m_noncms = TRUE;
include("$cmsroot/siteheader.php");
include("$cmsroot/sitedbfunctions.php");
$url = explode("/",$m_fullurl);
$u1 = $url[1];
$u2 = $url[2];
$u3 = $url[3];
$u4 = $url[4];
$maintenance = 1;
// ------------ LOGIN VARIABLES
$x_loggedin = (isset($_SESSION['sessionid']));
if($x_loggedin){
// SET GLOBAL VARIABLES FROM SESSION
$_USER = $_SESSION['USER'];
$m_username = $_USER['username'];
}
if($u1=="logout"){
unset($_SESSION['sessionid']);
unset($_SESSION['USER']);
session_destroy();
header("Location: $m_root/cms/login"); exit();
}
include("includes/connection.php");
ConnectToMyDB($m_username);
?>
Logged in as =$m_username;?> }?> |
|
// --------- MASTER INCLUDES include_once("includes/constants.php"); include_once("includes/functions.php"); include_once("includes/variables.php"); include_once("includes/sorting.php"); include_once("includes/history.php"); echo PutMsg($msg,$msgtype); if($u1=="login" || !$x_loggedin){ // NOT LOGGED IN include("includes/login.php"); } elseif($x_loggedin){ // LOGGED IN include("index.php"); } ?> | |
Xsys CMS (Content Management System) - Copyright © Expert Systems |