[BC] 自動更新対応完了

This commit is contained in:
2024-05-16 02:59:55 +09:00
parent a26a0ac130
commit 3d3c350777
5 changed files with 213 additions and 162 deletions
+3 -2
View File
@@ -60,7 +60,8 @@ $pages_max = (int) ((count ($log_data) - 1) / $length) + 1;
if (!($asc))
$log_data = array_reverse ($log_data);
$log_data = array_slice ($log_data, ($page - 1) * $length, $length, true);
$log_data = array_slice ($log_data, ($page - 1) * $length, $length, false);
echo json_encode ($log_data);
echo ('{"data": ' . json_encode ($log_data) . ', "max": ' . $pages_max
. ', "page": ' . $page . '}');