mirror of
https://github.com/pi-hole/web.git
synced 2026-04-22 09:48:56 +01:00
Add checkbox if the user wants his debug log to be uploaded automatically
This commit is contained in:
@@ -12,7 +12,14 @@ function echoEvent($datatext) {
|
||||
echo $datatext;
|
||||
}
|
||||
|
||||
$proc = popen("sudo pihole -d -a", "r");
|
||||
if(isset($_GET["upload"]))
|
||||
{
|
||||
$proc = popen("sudo pihole -d -a", "r");
|
||||
}
|
||||
else
|
||||
{
|
||||
$proc = popen("sudo pihole -d", "r");
|
||||
}
|
||||
while (!feof($proc)) {
|
||||
echoEvent(fread($proc, 4096));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user