Skip to content

Commit

Permalink
improve logs page
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrause committed Aug 23, 2024
1 parent 24e3cea commit 7b2deb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions html/logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
echo "<h1>Logs</h1>";

$s = "$user->name";
if (isset($_GET['s'])) {
$s = $_GET['s'];
}

foreach ($dirs as $d) {
$files = array_diff(scandir("$path/$d"), array('.', '..'));
foreach ($files as $f) {
Expand All @@ -33,6 +37,8 @@
if (strpos($c, $s) !== false) {
echo "<h2>$f</h2>\n";
echo "<pre>$c</pre>\n";
ob_flush();
flush();
}
}
}
Expand Down

0 comments on commit 7b2deb9

Please sign in to comment.