$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); $page->AddTableData(''); if (strlen($show) > 0) { $page->AddTableData('<tt>' . $wordkey . ' = <b>' . $show . '</b></tt>');
{ if($result['state'] == 'failed') $ioable = false; } if($ioable) $page->SuccessBox('The Installer has sufficient file permissions on this server.'); // THIS TABLE USES THE SAME TABLE-CSS AS "USER ACCESS TEST" STEP! $page->StartTable(4, array('class'=>'dbtests', 'cellspacing'=>'0', 'cellpadding'=>'0')); foreach($status as $test=>$result) { if($result['state'] == 'success') { $page->AddTableData('', array('class'=>'okayico')); $page->AddTableData($test, array('class'=>'operation')); $page->AddTableData('Success!', array('class'=>'okay')); $page->AddTableData($result['msg'], array('class'=>'normalmsg')); } else if($result['state'] == 'failed') { $page->AddTableData('', array('class'=>'failico')); $page->AddTableData($test, array('class'=>'operation')); $page->AddTableData('Failed!', array('class'=>'fail')); $page->AddTableData($result['msg'], array('class'=>'errormsg')); } else if($result['state'] == 'exists') { $page->AddTableData('', array('class'=>'existico')); $page->AddTableData($test, array('class'=>'operation'));
$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')); $page->AddTableData('You have:'); $page->AddTableData(phpversion(), array('style' => 'text-align:center;'));
} /* ===================================================[ CONFIGURATION OVERVIEW ]=================================================== */ // If the settings are 'false', then the step is not // configured in the $steps variable - show $config overview! if($sett === false) { /* -----------------------( GLOBAL SETTINGS )----------------------- */ $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(); /* -----------------------( INSTALLER KEYWORDS )----------------------- */ $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>');