Beispiel #1
0
/* 
 * Force https when in https mode
 * really needs to be a function called on all pages... to really force it
 * 
 */
if ($settings['settings']['https'] == "true" && !isset($_SERVER["HTTPS"])) {
    header("Location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
}
//array of modules and status either on or off
//$loadedModules = LoadModules::$_settings->general['modules'];
//var_dump ($loadedModules);
//get plugins//
$plugins = LoadPlugins::$_settings->general['plugins'];
//var_dump ($plugins);
if (DEBUG) {
    $loadavg->memoryDebugData($memory_usage);
}
//draw the header
require_once APP_PATH . '/layout/header.php';
/* 
 * check for successful installation
 */
//check if installation is complete passed over by installer
if (isset($_GET['check'])) {
    $loadavg->cleanUpInstaller();
} else {
    //check installation has been cleaned up for security reasons
    $loadavg->checkInstall();
}
/*
 * start polling time to generate charts