ページ化対応
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user