mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
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:
+13
-1
@@ -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"]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user