From: Bharat M. <bh...@us...> - 2002-04-28 20:05:20
|
Update of /cvsroot/gallery/gallery/setup In directory usw-pr-cvs1:/tmp/cvs-serv29421 Modified Files: functions.inc Log Message: Check for all possible configuration values of safe_mode Index: functions.inc =================================================================== RCS file: /cvsroot/gallery/gallery/setup/functions.inc,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- functions.inc 18 Apr 2002 07:14:07 -0000 1.38 +++ functions.inc 28 Apr 2002 08:52:24 -0000 1.39 @@ -272,10 +272,13 @@ { $fail = array(); $success = array(); - if (ini_get("safe_mode")) { - $fail["fail-safe-mode"]++; - } else { + $safe_mode = ini_get("safe_mode"); + if (empty($safe_mode) || + !strcasecmp($safe_mode, "off") || + !strcasecmp($safe_mode, "false")) { $success[] = "safe mode is off"; + } else { + $fail["fail-safe-mode"]++; } return array($success, $fail); } |