diff --git a/datamodels/2.x/itop-config/config.php b/datamodels/2.x/itop-config/config.php index e91412c63..6559a9b8c 100644 --- a/datamodels/2.x/itop-config/config.php +++ b/datamodels/2.x/itop-config/config.php @@ -74,6 +74,17 @@ function TestConfig($sContents, $oP) } } +function ConfigCheckDBPassword(iTopWebPage $oP, &$iEditorTopMargin) +{ + $bIsWindows = (array_key_exists('WINDIR', $_SERVER) || array_key_exists('windir', $_SERVER)); + $sDBPwd = MetaModel::GetConfig()->Get('db_pwd'); + if ($bIsWindows && (strpos($sDBPwd, '%') !== false)) + { + // Unsupported Password + $iEditorTopMargin += 5; + $oP->add("
"); + } +} ///////////////////////////////////////////////////////////////////// // Main program @@ -94,6 +105,7 @@ $oP->add_linked_script(utils::GetCurrentModuleUrl().'/js/ext-searchbox.js'); try { $sOperation = utils::ReadParam('operation', ''); + $iEditorTopMargin = 0; $oP->add("