hasIdentity()) { // Identity exists; get it $identity = $auth->getIdentity(); } else { $identity[] = "NONE"; $identity[] = "No login detected."; $_SESSION['khp_security_level'] = 0; $_SESSION['khp_role'] = "guest"; } if($_SERVER["HTTPS"] != "on") { header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); exit(); } else { // ---------------- // Start the index page $mkhp_path = "/var/www/vhosts/kh.photography/www/manage"; require_once($mkhp_path."/includes/connections.php"); require_once($mkhp_path."/includes/functions.php"); require_once($mkhp_path."/config.php"); require_once("workshops_config.php"); require_once("includes/functions.php"); //----------------- // Determine the Action URL # Pull out the actionpath $actionpath = $_GET['action']; $action_page = khp_pathfinder($actionpath); // Get Page Info global $pageinfo; $pageinfo = getPageData($action_page); # Debug Info # End Debug Info // Check for Workshops Settings if($_WORKSHOPS_SETTINGS_['activated'] != "active") { // the settings haven't been populated yet, populate them now $_WORKSHOPS_SETTINGS_ = getWorkshopsSettings(); $_WORKSHOPS_SETTINGS = getWorkshopsSettings(); } // check to see if Coming Soon Page has been activated if($action_page[0] == "index" && $_WORKSHOPS_SETTINGS_['coming_soon_mode'] == "true" && $_SESSION['khp_security_level'] <6) { // coming soon mode is activated startWorkshopPage(); buildWorkshopPage(); doPageBuilder('comingsoon'); if($_SESSION['khp_security_level'] > 6) { ?>
6) { ?>
A file to handle the ".$action_page[0]." action was not found.

"; include_once("includes/error_handler.php"); } // End of index page endWorkshopPage(); } #eof ?>