to fix - Array and string offset access syntax with curly braces is deprecated
This commit is contained in:
1 parent
3213abd282
commit
ea3301f7eb
1 file changed
+3
-3
@@ -195,12 +195,12 @@ class Index extends BaseController
|
||||
{
|
||||
$x = 0;
|
||||
}
|
||||
$char .= $key{$x};
|
||||
$char .= $key[$x];
|
||||
$x++;
|
||||
}
|
||||
for ($i = 0; $i < $len; $i++)
|
||||
{
|
||||
$str .= chr(ord($data{$i}) + (ord($char{$i})) % 256);
|
||||
$str .= chr(ord($data[$i]) + (ord($char[$i])) % 256);
|
||||
}
|
||||
return base64_encode($str);
|
||||
}
|
||||
@@ -339,5 +339,5 @@ class Index extends BaseController
|
||||
$jinyong = strtotime("$now+".$jyshijian." day");
|
||||
return $jinyong;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user