ページ化対応

This commit is contained in:
miteruzo
2023-12-11 01:42:33 +09:00
parent b57f10fd89
commit 72b9aecb61
4 changed files with 98 additions and 15 deletions
+9
View File
@@ -4,6 +4,10 @@ const LOG_PATH = './log.txt';
$log_data = [];
$page = (int) ($_GET['p'] ?? 1);
$length = (int) ($_GET['max'] ?? 20);
$asc = ($_GET['asc'] ?? 0) != 0;
$f = fopen (LOG_PATH, 'r');
if ($f !== false)
@@ -25,5 +29,10 @@ fclose ($f);
unset ($f);
$pages_max = (int) (count ($log_data) / $length);
if (!($asc))
$log_data = array_reverse ($log_data);
require_once './index.frm.php';