Beispiel #1
0
include_once 'class.Plugins.php';
$loadPlugins = new loadPlugins();
// Grab Default settings
$settings = LoadAvg::$_settings->general;
$flooding = false;
//first lets see if a name has been set...
$pageName = "installer";
// Including header view
require_once APP_PATH . '/layout/header.php';
//check for settings
$settings_file = APP_PATH . '/config/settings.ini.php';
// path to settings INI file
//read some system data
$settingsActive = LoadUtility::checkWritePermissions($settings_file);
//check out logs
$logStatus = $loadavg->testLogs(false);
//check if any data has been passed in
$step = 1;
if (isset($_GET['step'])) {
    $step = $_GET['step'];
}
// if step argument exists set the step
//if (isset($_GET['step'])) ? $step=1; : $step = $_GET['step'];
//forceinstall is used to force a install when script has detected an upgrade
$forceInstall = false;
if (isset($_GET['forceinstall'])) {
    $forceInstall = true;
}
//see if we can get the version number
if (isset($settings['settings']['version'])) {
    $version = $settings['settings']['version'];