add link to swap between blocked and all client queries

Co-authored-by: yubiuser <ckoenig@posteo.de>
Signed-off-by: stuXORstu <stuxorstu@gmail.com>
This commit is contained in:
stuXORstu
2022-03-10 19:19:22 +00:00
parent 652bb23052
commit cbed1e5aa4
+13 -1
View File
@@ -46,7 +46,19 @@ if(isset($_GET["all"]))
}
else if(isset($_GET["client"]))
{
$showing .= " queries for client ".htmlentities($_GET["client"]);
// Add switch between showing all queries and blocked only
if (isset($_GET["type"]) && $_GET["type"] === "blocked")
{
// Show blocked queries for this client + link to all
$showing .= " blocked queries for client ".htmlentities($_GET["client"]);
$showing .= ", <a href=\"?client=".htmlentities($_GET["client"])."\">show all</a>";
}
else
{
// Show All queries for this client + link to show only blocked
$showing .= " all queries for client ".htmlentities($_GET["client"]);
$showing .= ", <a href=\"?client=".htmlentities($_GET["client"])."&type=blocked\">show blocked only</a>";
}
}
else if(isset($_GET["forwarddest"]))
{