示例#1
0
 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
         // indicate if there is a problem in certain part
         $phpversion = true;
示例#2
0
				{
					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;
					}
				}

				// If all modules are installed
				if($phpmodules)
				{
					$page->FormStart(array('step'=>GetNextStep(STEP_MODULECHECK))); 
					$page->FormSubmit('Next');
					$page->FormClose();
				}

				// There where some errors or problems with the 
				// file IO - show "retry" button
				else
				{
					$page->Paragraph('Contact your webserver support (hosting service) to get the necessary PHP extensions loaded.');

					$page->FormStart(array('step'=>STEP_MODULECHECK));  
					$page->FormSubmit('Retry');
					$page->FormClose();
				}