mirror of
https://github.com/pi-hole/web.git
synced 2025-12-23 12:18:26 +00:00
19 lines
324 B
PHP
19 lines
324 B
PHP
<?php
|
|
require('auth.php');
|
|
|
|
$type = $_POST['list'];
|
|
|
|
// All of the verification for list editing
|
|
list_verify($type);
|
|
|
|
switch($type) {
|
|
case "white":
|
|
echo exec("sudo pihole -w -q ${_POST['domain']}");
|
|
break;
|
|
case "black":
|
|
echo exec("sudo pihole -b -q ${_POST['domain']}");
|
|
break;
|
|
}
|
|
|
|
?>
|