$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;')); $page->AddTableData('<tt>' . $show . '</tt>'); } $page->EndTable(); $page->Paragraph(); $page->MainTitle('Installer Keywords', 'keywords'); $page->StartTable(2, array('class' => 'dbtests')); foreach ($keywords as $key => $value) { if (is_array($value)) { $page->AddTableData('<b>' . $key . '</b>', array('style' => 'text-align:right; padding-right:12px;')); $page->AddTableData('<span style="color:#BEBEBE">' . count($value) . ' keywords</span>'); foreach ($value as $wordkey => $wordvalue) { $show = GetSettingsValue($wordvalue);
/* ===================================================[ PHP REQUIREMENTS CHECKS ]=================================================== */ if ($steps[STEP_PHPREQUIRES]['enabled']) { $page->MainTitle($steps[STEP_PHPREQUIRES]['title'], 'phplogo'); // Three variations of PHP checks, these will // indicate if there is a problem in certain part $phpversion = true; $extensions = true; $directives = true; // If minimum PHP version is required if ($steps[STEP_PHPREQUIRES]['phpversion'] !== false) { $page->SubTitle('PHP Version', 'notepad'); $bounds = GetVersionBounds($steps[STEP_PHPREQUIRES]['phpversion'], $steps[STEP_PHPREQUIRES]['maxversion']); $CurLow = CompareVersons($bounds['current'], $bounds['lower']); $CurHig = CompareVersons($bounds['current'], $bounds['upper']); // Start the version table $page->StartTable(4, array('class' => 'dbtests', 'cellspacing' => '0', 'cellpadding' => '0')); // Display the requirements $page->AddTableData('', array('class' => 'currentico')); $page->AddTableData('Required:', array('style' => 'padding-right:15px;')); // If range is defined or not if ($steps[STEP_PHPREQUIRES]['maxversion'] === false) { $str = ' or later'; } else { $str = ' - ' . implode('.', VersionStringToArray($steps[STEP_PHPREQUIRES]['maxversion'])); } $page->AddTableData(implode('.', $bounds['lower']) . $str, array('style' => 'padding-right:15px;')); $page->AddTableData(''); // If current version is equal or higher than lower bound // and is below the upper bound - then accepted! if ($CurLow >= 0 && $CurHig < 0) { $page->AddTableData('', array('class' => 'okayico'));