Merge pull request #2129 from stuXORstu/feature/showblocked

add link to swap between blocked and all client queries
This commit is contained in:
yubiuser
2022-03-11 06:41:51 +01:00
committed by GitHub
+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"]))
{