mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Add privacy level tab to Settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -256,7 +256,7 @@ function readAdlists()
|
||||
$extra .= " conditional_forwarding ".$_POST["conditionalForwardingIP"]." ".$_POST["conditionalForwardingDomain"]." $reverseAddress";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Check if DNSinterface is set
|
||||
if(isset($_POST["DNSinterface"]))
|
||||
{
|
||||
@@ -635,7 +635,19 @@ function readAdlists()
|
||||
|
||||
// Reread available adlists
|
||||
$adlist = readAdlists();
|
||||
break;
|
||||
|
||||
case "privacyLevel":
|
||||
$level = intval($_POST["privacylevel"]);
|
||||
if($level >= 0 && $level <= 3)
|
||||
{
|
||||
exec("sudo pihole -a privacylevel ".$level);
|
||||
$success .= "The privacy level has been updated";
|
||||
}
|
||||
else
|
||||
{
|
||||
$error .= "Invalid privacy level (".$level.")!";
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user