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"])) {