From cbed1e5aa4889dda17c9d4ef64a8976caa019488 Mon Sep 17 00:00:00 2001 From: stuXORstu Date: Thu, 10 Mar 2022 19:19:22 +0000 Subject: [PATCH] add link to swap between blocked and all client queries Co-authored-by: yubiuser Signed-off-by: stuXORstu --- queries.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/queries.php b/queries.php index 256e2c96..a64b2555 100644 --- a/queries.php +++ b/queries.php @@ -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 .= ", show all"; + } + else + { + // Show All queries for this client + link to show only blocked + $showing .= " all queries for client ".htmlentities($_GET["client"]); + $showing .= ", show blocked only"; + } } else if(isset($_GET["forwarddest"])) {