예제 #1
0
 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
         // indicate if there is a problem in certain part
         $phpversion = true;
         $extensions = true;
         $directives = true;
         // If minimum PHP version is required