Add checkbox if the user wants his debug log to be uploaded automatically

This commit is contained in:
DL6ER committed 2017-02-22 19:47:58 +01:00
1 parent 71672319af
commit 20ce214c9f
3 files changed
+19 -4

No files matched your search

+8 -1
View File
@@ -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));
}