Commit 735cb38e authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch...

Merge branch '6115-warning-array-and-string-offset-access-syntax-with-curly-braces-is-deprecated' into '1.4-dev'

Resolve "Warning "Array and string offset access syntax with curly braces is deprecated""

See merge request fusiondirectory/fd!810
Showing with 1 addition and 17 deletions
+1 -17
......@@ -265,7 +265,7 @@ abstract class standAlonePage
$max = strlen($base) - 1;
$randomhash = '';
while (strlen($randomhash) < $len + 1) {
$randomhash .= $base{random_int(0, $max)};
$randomhash .= $base[random_int(0, $max)];
}
return $randomhash;
}
......
......@@ -152,14 +152,6 @@ class setupStepChecks extends setupStep
/* PHP Configuration checks */
/* Register_globals off */
$N = "register_globals = <b>off</b>";
$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;
$config_checks[] = ["NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M ];
/* session lifetime set to >=86400 seconds ? */
$N = "session.gc_maxlifetime &gt;= <b>86400</b>";
$D = _("PHP uses this value for the garbage collector to delete old sessions.")." ".
......@@ -210,14 +202,6 @@ class setupStepChecks extends setupStep
$M = FALSE;
$config_checks[] = ["NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M ];
/* Emulating old stuff? */
$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;
$config_checks[] = ["NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M ];
$this->basic_checks = $basic_checks;
$this->config_checks = $config_checks;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment