$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 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;'));
} // If the password is encrypted and connection has been made successfully - then pressing NEXT // in the 'else' clause below would send an empty string and reset the password to nothing. So, // either force the user to type in the password every time he visists this step (which sucks) // or just show success message and offer a "disconnect" button instead. Then the only info posted // on the "next" button here will be the step key if($steps[STEP_DBCONNECT]['encryptlogin'] && $dbase->IsConnected()) { $page->FormStart(array('step'=>GetNextStep(STEP_DBCONNECT))); $prev = GetPrevStep(STEP_DBCONNECT); if($prev) $page->FormButton('Back', array('step'=>$prev)); $page->FormSubmit('Next'); $page->FormClose(); $page->SubTitle('Disconnect', 'disconnect'); $page->Paragraph('The <i>username</i> and <i>password</i> provided to connect to <b>'.$login['hostname']. '</b> are encrypted during the rest of this process. However, you can disconnect '. 'from current connection and enter new username and password if needed.'); $page->FormStart(array('step'=>STEP_DBCONNECT, 'reset'=>'connection')); $page->FormSubmit('Disconnect'); $page->FormClose(); } // Only shown when not connected to database server else { $page->FormStart(array('step'=>GetNextStep(STEP_DBCONNECT))); // If port is offered as option