$oPage->add_ready_script(<<<EOF \$('#about_box').dialog({ \twidth: 700, \tmodal: true, \ttitle: '{$sDialogTitle}', \tclose: function() { \$(this).remove(); } }); \$("#collapse_support_details").click(function() { \t\$("#support_details").slideToggle('normal'); \t\$("#collapse_support_details").toggleClass('open'); }); \$('#support_details').toggle(); EOF ); $sVersionString = Dict::Format('UI:iTopVersion:Long', ITOP_VERSION, ITOP_REVISION, ITOP_BUILD_DATE); $sMySQLVersion = CMDBSource::GetDBVersion(); $sPHPVersion = phpversion(); $sOSVersion = PHP_OS; $sWebServerVersion = $_SERVER["SERVER_SOFTWARE"]; $sModules = implode(', ', get_loaded_extensions()); // Get the datamodel directory $oFilter = DBObjectSearch::FromOQL('SELECT ModuleInstallation WHERE name="datamodel"'); $oSet = new DBObjectSet($oFilter, array('installed' => false)); // Most recent first $oLastInstall = $oSet->Fetch(); $sLastInstallDate = $oLastInstall->Get('installed'); $sDataModelVersion = $oLastInstall->Get('version'); $aDataModelInfo = json_decode($oLastInstall->Get('comment'), true); $sDataModelSourceDir = $aDataModelInfo['source_dir']; require_once APPROOT . 'setup/runtimeenv.class.inc.php'; $sCurrEnv = utils::GetCurrentEnvironment();
public static function GetMySQLVersion($sDBServer, $sDBUser, $sDBPwd) { $oDBSource = new CMDBSource(); $oDBSource->Init($sDBServer, $sDBUser, $sDBPwd); $sDBVersion = $oDBSource->GetDBVersion(); return $sDBVersion; }