> " button * @return string The label for the button */ public function GetNextButtonLabel() { return 'Continue'; } public function GetPossibleSteps() { return [WizStepInstallOrUpgrade::class]; } public function UpdateWizardStateAndGetNextStep($bMoveForward = true): WizardState { $sUID = SetupUtils::CreateSetupToken(); $this->oWizard->SetParameter('authent', $sUID); return new WizardState(WizStepInstallOrUpgrade::class); } public function Display(WebPage $oPage) { // Store the misc_options for the future... $aMiscOptions = utils::ReadParam('option', [], false, 'raw_data'); $sMiscOptions = $this->oWizard->GetParameter('misc_options', json_encode($aMiscOptions)); $this->oWizard->SetParameter('misc_options', $sMiscOptions); $oPage->add(""); $oPage->add_ready_script( << 0) { alert("Internet Explorer version 10 or older is NOT supported! (Check that IE is not running in compatibility mode)"); } EOF ); $oPage->add('

'.ITOP_APPLICATION.' Installation Wizard

'); $aResults = SetupUtils::CheckPhpAndExtensions(); $this->bCanMoveForward = true; $aInfo = []; $aWarnings = []; $aErrors = []; foreach ($aResults as $oCheckResult) { switch ($oCheckResult->iSeverity) { case CheckResult::ERROR: $aErrors[] = $oCheckResult->sLabel; $this->bCanMoveForward = false; break; case CheckResult::WARNING: $aWarnings[] = $oCheckResult->sLabel; break; case CheckResult::INFO: $aInfo[] = $oCheckResult->sLabel; break; case CheckResult::TRACE: SetupLog::Ok($oCheckResult->sLabel); break; } } $sStyle = 'style="display:none;overflow:auto;"'; $sToggleButtons = ''; if (count($aErrors) > 0) { $sStyle = 'overflow:auto;"'; $sTitle = count($aErrors).' Error(s), '.count($aWarnings).' Warning(s).'; $sH2Class = 'text-error'; } elseif (count($aWarnings) > 0) { $sTitle = count($aWarnings).' Warning(s) '.$sToggleButtons; $sH2Class = 'text-warning'; } else { $sTitle = 'Ok. '.$sToggleButtons; $sH2Class = 'text-valid'; } $oPage->add( <<Prerequisites validation: $sTitle
HTML ); foreach ($aErrors as $sText) { $oPage->error($sText); } foreach ($aWarnings as $sText) { $oPage->warning($sText); } foreach ($aInfo as $sText) { $oPage->ok($sText); } $oPage->add('
'); if (!$this->bCanMoveForward) { $oPage->p('Sorry, the installation cannot continue. Please fix the errors and reload this page to launch the installation again.'); $oPage->p(''); } $oPage->add_ready_script('CheckDirectoryConfFilesPermissions("'.utils::GetItopVersionWikiSyntax().'")'); } public function CanMoveForward() { return $this->bCanMoveForward; } }