mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Fixed Trac #126: misleading message during the setup when magic_quotes_gpc in On. Now we provide a more accurate message.
SVN:trunk[424]
This commit is contained in:
@@ -166,7 +166,20 @@ function CheckPHPVersion(SetupWebPage $oP)
|
||||
if (function_exists('php_ini_loaded_file')) // PHP >= 5.2.4
|
||||
{
|
||||
$sPhpIniFile = php_ini_loaded_file();
|
||||
$oP->log("Info - php.ini path: '$sPhpIniFile'");
|
||||
// Other included/scanned files
|
||||
if ($sFileList = php_ini_scanned_files())
|
||||
{
|
||||
if (strlen($sFileList) > 0)
|
||||
{
|
||||
$aFiles = explode(',', $sFileList);
|
||||
|
||||
foreach ($aFiles as $sFile)
|
||||
{
|
||||
$sPhpIniFile .= ', '.trim($sFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
$oP->log("Info - php.ini file(s): '$sPhpIniFile'");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -221,7 +234,7 @@ function CheckPHPVersion(SetupWebPage $oP)
|
||||
// Check some more ini settings here, needed for file upload
|
||||
if (get_magic_quotes_gpc())
|
||||
{
|
||||
$oP->error("'magic_quotes_gpc' is set to On in '$sPhpIniFile', please turn it Off before continuing.");
|
||||
$oP->error("'magic_quotes_gpc' is set to On. Please turn it Off before continuing. You may want to check the PHP configuration file(s): '$sPhpIniFile'. Be aware that this setting can also be overridden in the apache configuration.");
|
||||
$bResult = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user