PHP 7.4
This commit is contained in:
parent
5a09f8159f
commit
f36446fe43
|
@ -227,7 +227,7 @@ function generateSalt($len) {
|
|||
$salt = '';
|
||||
for ($i = 0; $i < $len; $i++) {
|
||||
$pos = abs(getRandomNumber() % strlen($chars));
|
||||
$salt .= $chars{$pos};
|
||||
$salt .= $chars[$pos];
|
||||
}
|
||||
return $salt;
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ function checkChmod($right, $target, $chmod) {
|
|||
}
|
||||
|
||||
// Cut the number from the chmod:
|
||||
$chmod_num = $chmod{$chmod_num};
|
||||
$chmod_num = $chmod[$chmod_num];
|
||||
|
||||
// Now check, if the chmod_num can be right with the $right
|
||||
// What numbers allow "read"
|
||||
|
|
|
@ -189,7 +189,7 @@ class TemplateRender extends PageRender {
|
|||
$next_number = $vals;
|
||||
|
||||
foreach ($mod as $calc) {
|
||||
$operand = $calc{0};
|
||||
$operand = $calc[0];
|
||||
$operator = substr ($calc,1);
|
||||
|
||||
switch ($operand) {
|
||||
|
|
|
@ -217,7 +217,7 @@ abstract class Export {
|
|||
*/
|
||||
protected function isSafeAscii($str) {
|
||||
for ($i=0;$i<strlen($str);$i++)
|
||||
if (ord($str{$i}) < 32 || ord($str{$i}) > 127)
|
||||
if (ord($str[$i]) < 32 || ord($str[$i]) > 127)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue