session_start(); if($_SERVER['HTTP_HOST'] == "akitemplate:8888") define("TESTHOST", true); else define("TESTHOST", false); include 'db.php'; include_once 'AKI/class.formelements_v2.php'; include_once 'AKI/class.general.php'; include_once 'AKI/class.phpmailer.php'; include_once 'AKI/functions.general.php'; include_once 'functions.custom.php'; include_once 'class.custom.php'; define("SALT", "Change This"); $logged_user_id = decrypt($_SESSION['UserID'], SALT); $ADMIN = dbSelect("SELECT * FROM admin_user WHERE id = '$logged_user_id'", "single"); if(preg_match("!^/cms!i", $_SERVER['PHP_SELF'])){ if(!$admin_override && !$ADMIN){ $_SESSION['UserMessage'] = "Your session has expired."; header("Location: /cms/index.php"); exit; } define("CMS", true); }else{ define("CMS", false); } if($pop == "Y"){ define("POP", true); }else{ define("POP", false); } if($ADMIN) $_SESSION['isLoggedIn'] = true; $page_title_nm = "Hiatus Design Ltd. - Interior Design, Toronto, ON"; if(in_array($ADMIN['group_nbr'], array(1, 2))){ define("SUPER", true); }else{ define("SUPER", false); } define("PAGECODE", md5($_SERVER['PHP_SELF'])); $cms['store'] = true; $cms['blog'] = true; $twitter_cfg = array( 'user_token' => '704466042-2tcZwkpJLbdaCrm8mIxTu8rsTZRioPdRiOWZUmwK', 'user_secret' => 'jp1a4BL0Ku8tTtfW1IDoYWQ7nex3NsSYat6bBgXs' ); define("GALLERY_PATH", $_SERVER['DOCUMENT_ROOT'] . "/images/gallery/"); ?>




