. */ if ( !isset($_SERVER['HTTP_HTTPS']) || $_SERVER['HTTP_HTTPS'] != 'On' ) { if(headers_sent()) { echo "mple"; } header("Status: 301"); header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit; } // Read configuration if( !is_file("./config.php") ) { header("Content-type: text/plain"); echo "It seems this website has not been configured yet. Please contact the webmaster."; exit(0); } require_once("./config.php"); if( defined("LOGFILE") && LOGFILE!="" ) { $file = str_replace("#", date("Ymd"), LOGFILE); }else { $file = NULL; } require_once(FILESYSTEMROOTPATH."include/classes/Logger.php"); $GLOBALS['Logger'] = new Logger($file); // Provide global variables and functions require_once(FILESYSTEMROOTPATH."include/functions.php"); require_once(FILESYSTEMROOTPATH."include/emuhash_functions.php"); require_once("./include/classes/ClassFactory.php"); $GLOBALS['ClassFactory'] = new ClassFactory(); $GLOBALS['ClassFactory']->getMySql(); // catch connection error already now ?>