Implemented new "pihole -q <domain> -exact" argument in web UI

This commit is contained in:
DL6ER
2016-12-06 13:30:53 +01:00
parent 9fd0f916c5
commit beeea0edfb
2 changed files with 27 additions and 7 deletions

View File

@@ -34,7 +34,16 @@ else
die();
}
$proc = popen("sudo pihole -q ".$url, 'r');
if(isset($_GET["exact"]))
{
$exact = "-exact";
}
else
{
$exact = "";
}
$proc = popen("sudo pihole -q ".$url." ".$exact, 'r');
while (!feof($proc)) {
echoEvent(fread($proc, 4096));
}