/*
*/ ?>
session_start(); 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"); $CUSTOMER = false; if(isset($_SESSION['CustomerInfo'])){ $cid = decrypt($_SESSION['CustomerInfo']['id'], SALT); $query = "SELECT * FROM customers WHERE id = '$cid' AND active_flg = 1"; $CUSTOMER = dbSelect($query, "single"); if($CUSTOMER['admin_flg']){ $ADMIN = $CUSTOMER; }else{ $ADMIN = false; } } if(preg_match("!^/cms!i", $_SERVER['PHP_SELF'])){ if(!$admin_override && !$ADMIN){ $_SESSION['UserMessage'] = "You do not have access to this page."; header("Location: /cms/index.php"); exit; } define("CMS", true); }else{ define("CMS", false); } if($ADMIN) $_SESSION['isLoggedIn'] = true; $page_title_nm = "J.R. Barnwell Design Inc. • Toronto Interior Design"; if(in_array($ADMIN['group_nbr'], array(1, 2))){ define("SUPER", true); }else{ define("SUPER", false); } ?>
/*
*/ ?>