mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-11 15:54:10 +02:00
Clean some PHP code.
This commit is contained in:
@@ -28,7 +28,7 @@ class Json {
|
|||||||
$insideComment = false;
|
$insideComment = false;
|
||||||
$json = '';
|
$json = '';
|
||||||
|
|
||||||
for ($i = 0; $i < strlen($commented_json); $i += 1) {
|
for ($i = 0, $len = strlen($commented_json); $i < $len; $i += 1) {
|
||||||
$char = $commented_json[$i];
|
$char = $commented_json[$i];
|
||||||
$charchar = $char . @$commented_json[$i + 1];
|
$charchar = $char . @$commented_json[$i + 1];
|
||||||
$prevChar = @$commented_json[$i - 1];
|
$prevChar = @$commented_json[$i - 1];
|
||||||
|
@@ -73,7 +73,7 @@ class Archive {
|
|||||||
header('Content-Length: ' . $total_size);
|
header('Content-Length: ' . $total_size);
|
||||||
|
|
||||||
foreach ($dirs as $real_dir => $archived_dir) {
|
foreach ($dirs as $real_dir => $archived_dir) {
|
||||||
echo $this->php_tar_header($archived_dir, 0, @filemtime($real_dir . DIRECTORY_SEPARATOR . "."), 5);
|
echo $this->php_tar_header($archived_dir, 0, @filemtime($real_dir . DIRECTORY_SEPARATOR . '.'), 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($files as $real_file => $archived_file) {
|
foreach ($files as $real_file => $archived_file) {
|
||||||
|
Reference in New Issue
Block a user