diff --git a/setup/setuputils.class.inc.php b/setup/setuputils.class.inc.php index 9caa6fb81..77864f04f 100644 --- a/setup/setuputils.class.inc.php +++ b/setup/setuputils.class.inc.php @@ -825,6 +825,14 @@ EOF return $aResult; } + static public function GetMySQLVersion($sDBServer, $sDBUser, $sDBPwd) + { + $oDBSource = new CMDBSource; + $oDBSource->Init($sDBServer, $sDBUser, $sDBPwd); + $sDBVersion = $oDBSource->GetDBVersion(); + return $sDBVersion; + } + static public function AsyncCheckDB($oPage, $aParameters) { $sDBServer = $aParameters['db_server']; diff --git a/setup/wizardsteps.class.inc.php b/setup/wizardsteps.class.inc.php index bdef5cb82..c53819969 100644 --- a/setup/wizardsteps.class.inc.php +++ b/setup/wizardsteps.class.inc.php @@ -2079,7 +2079,9 @@ class WizStepDone extends WizardStep $sForm .= ''; $sForm .= "

"; $sForm .= ''; - $oPage->add(''); + $sPHPVersion = phpversion(); + $sMySQLVersion = SetupUtils::GetMySQLVersion($this->oWizard->GetParameter('db_server'), $this->oWizard->GetParameter('db_user'), $this->oWizard->GetParameter('db_pwd')); + $oPage->add(''); $sForm = addslashes($sForm); $oPage->add_ready_script("$('#wiz_form').after('$sForm');"); }