Ejemplo n.º 1
0
    if (!is_file($file) || !is_readable($file)) {
        die('The file <b>' . $file . '</b> is either not found or is unreadable');
    }
}
/********************************[ ENABLED STEPS ]********************************/
define('INST_RUNSCRIPT', pathinfo(__FILE__, PATHINFO_BASENAME));
define('INST_BASEDIR', str_replace(INST_RUNSCRIPT, '', __FILE__));
define('INST_RUNFOLDER', '');
define('INST_RUNINSTALL', 'installer.php');
include 'configuration.php';
include $assetFolder . DIRECTORY_SEPARATOR . 'class.htmlmaker.php';
include $assetFolder . DIRECTORY_SEPARATOR . 'class.masks.php';
$page = new Inst_HtmlMaker();
$mask = new Inst_Masks();
$page->HideDisabledSteps(false);
$page->HideAutoskipSteps(false);
$page->UseStepWait(false);
// Get the settings for some requested step
$step = isset($_REQUEST['step']) ? $_REQUEST['step'] : 'overview';
$sett = false;
if (isset($steps[$step])) {
    $sett = $steps[$step];
}
// If the settings are 'false', then the step is not
// configured in the $steps variable - show $config overview!
if ($sett === false) {
    $page->MainTitle('Main Configuration', 'settings');
    $page->StartTable(2, array('class' => 'dbtests'));
    foreach ($config as $key => $value) {
        $show = GetSettingsValue($value);
        $page->AddTableData('<b>' . $key . '</b>', array('style' => 'text-align:right; padding-right:12px;'));