Add option to disable logging without flushing logs (for temporary disabling without wanting to nuke the logs).

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-01-18 17:09:20 +01:00
parent 5140baa8f5
commit 78f6cb3751
3 changed files with 38 additions and 5 deletions

View File

@@ -278,7 +278,12 @@ function readAdlists()
if($_POST["action"] === "Disable")
{
exec("sudo pihole -l off");
$success .= "Logging has been disabled";
$success .= "Logging has been disabled and logs have been flushed";
}
elseif($_POST["action"] === "Disable-noflush")
{
exec("sudo pihole -l off noflush");
$success .= "Logging has been disabled, your logs have <strong>not</strong> been flushed";
}
else
{