index 2da89f35102dec5a80e13bcf86f14ea182cc46cd..5af36b6c49080f15fe4c8198e598deaf3a50da23 100644 (file)
/* Check for installed mhash module */
$N = _("Checking for mhash support");
$D = _("You'll need this module to make use of SSHA encryption");
- $S = _("The mhash module for PHP 4/5 is not available.Pplease install php4-mhash/php5-mhash.");
+ $S = _("The mhash module for PHP 4/5 is not available.Please install php4-mhash/php5-mhash.");
$R = is_callable("mhash");
$M = FALSE;
$this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
/* Register_globals off */
$N = "register_globals = <b>"._("Off")."</b>";
- $D = _("register_globals is a PHP mechanism to register all global varibales to be accessible from scripts without changing the scope. This may be a security risk.");
+ $D = _("register_globals is a PHP mechanism to register all global variables to be accessible from scripts without changing the scope. This may be a security risk.");
$S = _("Search for 'register_globals' in your php.ini and switch it to 'Off'.");
$R = ini_get("register_globals") == 0;
$M = FALSE;
$N = "implicit_flush = <b>"._("Off")."</b>";
$D = _("This option influences the PHP output handling. Turn this Option off, to increase performance.");
$S = _("Search for 'implicit_flush' in your php.ini and set it to 'Off'.");
- $R = ini_get('implicit_flush');
+ $R = !ini_get('implicit_flush');
$M = FALSE;
$this->config_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
$M = TRUE;
$this->config_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+ /* Emulating old stuff? */
+ if (!preg_match('/^4/', phpversion())){
+ $N = "zend.ze1_compatibility_mode = <b>"._("Off")."</b>";
+ $D = _("Increase your server performance by setting magic_quotes_gpc to 'off'.");
+ $S = _("Search for 'zend.ze1_compatibility_mode' in your php.ini and set it to 'Off'.");
+ $R = !ini_get('zend.ze1_compatibility_mode');
+ $M = FALSE;
+ $this->config_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+ }
+
/* Configuration file
*/