This commit is contained in:
Bruno Eckhardt committed 2026-02-05 13:08:57 +01:00
1 parent 063db10433
commit 73ffffb86d
1 file changed
+4 -10
+4 -10
View File
@@ -90,14 +90,6 @@ if (!$useCustom) {
ORDER BY `FIRST_REQUEST` DESC;
";
break;
$sql = "
SELECT *
FROM logs
WHERE SERVER_IP = '$filter'
ORDER BY FIRST_REQUEST DESC
";
break;
default:
$sql = "
@@ -112,12 +104,14 @@ if (!$useCustom) {
<h1>📊 Logs</h1>
<form method="GET">
<form method="GET" action="index.php">
<input type="hidden" name="service" value="<?= htmlspecialchars($_GET['service'] ?? 'logs') ?>">
<select name="filter" onchange="this.form.submit()">
<?php
$options = ['alle','today','node1','node2','node3','node4','counterperip'];
foreach ($options as $opt) {
$sel = $filter === $opt ? 'selected' : '';
$sel = ($filter === $opt) ? 'selected' : '';
echo "<option value='$opt' $sel>$opt</option>";
}
?>