mirror of
https://github.com/pi-hole/web.git
synced 2026-04-26 03:40:09 +01:00
Merge branch 'devel' into restructureFolders
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
<?php
|
||||
require('auth.php');
|
||||
|
||||
if(!isset($_POST['domain'], $_POST['list'], $_POST['token'])) {
|
||||
log_and_die("Missing POST variables");
|
||||
}
|
||||
$type = $_POST['list'];
|
||||
|
||||
check_cors();
|
||||
check_csrf($_POST['token']);
|
||||
check_domain();
|
||||
// All of the verification for list editing
|
||||
list_verify($type);
|
||||
|
||||
switch($_POST['list']) {
|
||||
switch($type) {
|
||||
case "white":
|
||||
echo exec("sudo pihole -w -q ${_POST['domain']}");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user