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;')); $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) {
// Update the mask class with updated keywords (with login, database etc.) $mask->SetKeywords(); /* ===================================================[ INSTALLATION BEGINS! ]=================================================== */ // If the output config does not exist, or is totally empty if(IsInstallerDone() == false) { /* ===================================================[ PHP MODULE CHECK ]=================================================== */ $phpmodules = true; if($steps[STEP_MODULECHECK]['enabled']) { $page->MainTitle($steps[STEP_MODULECHECK]['title'], 'phpmodule'); $page->Paragraph('All PHP extensions must be installed in order for the Installer and/or the system to function properly.'); // Do the module checking foreach($steps[STEP_MODULECHECK]['modules'] as $module) { if(IsModuleInstalled($module)) { $page->SuccessBox('<b><tt>'.$module.'</tt></b> is installed!'); } else { $page->ErrorBox('<b><tt>'.$module.'</tt></b> is <u>not installed!</u>'); $phpmodules = false; } }
$page->AddToDebug('Sessions:', $_SESSION[$config['session_prefix']]); } if ($config['debug_posts']) { $page->AddToDebug('POST data:', $_POST); } if ($config['debug_gets']) { $page->AddToDebug('GET data:', $_GET); } // Update the mask class with updated keywords (with login, database etc.) $mask->SetKeywords(); /* ===================================================[ INSTALLATION BEGINS! ]=================================================== */ // If the output config does not exist, or is totally empty if (IsInstallerDone() == false) { /* ===================================================[ WELCOME MESSAGE ]=================================================== */ if ($steps[STEP_WELCOME]['enabled'] && $step == STEP_WELCOME) { $page->MainTitle($steps[STEP_WELCOME]['title'], 'home'); $page->Paragraph($mask->GetWelcomeMessage()); $page->FormStart(array('step' => GetNextStep(STEP_WELCOME))); $prev = GetPrevStep(STEP_WELCOME); if ($prev) { $page->FormButton('Back', array('step' => $prev)); } $page->FormSubmit('Next'); $page->FormClose(); $page->ShowPage(STEP_WELCOME); // <<<<<<<<<<<< PHP dies after the page has been shown! } /* ===================================================[ PHP REQUIREMENTS CHECKS ]=================================================== */ if ($steps[STEP_PHPREQUIRES]['enabled']) { $page->MainTitle($steps[STEP_PHPREQUIRES]['title'], 'phplogo'); // Three variations of PHP checks, these will
</body> </html> <? // Stop running after content has been shown die(); } /* ===================================================[ 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) {