예제 #1
0
$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>');
                } else {
                    $page->AddTableData('<tt>' . $wordkey . '</tt>');
                }
            }
예제 #2
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
예제 #3
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) {
     /* ===================================================[ 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;
             }
         }
         // If all modules are installed
         if ($phpmodules) {
             $page->FormStart(array('step' => GetNextStep(STEP_MODULECHECK)));
             $page->FormSubmit('Next');
             $page->FormClose();
         } else {
예제 #4
0
        $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;
					}
				}
예제 #5
0
	// 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>');

				foreach($value as $wordkey=>$wordvalue)
				{
					$show = GetSettingsValue($wordvalue);
					$page->AddTableData('');