Revert "Merge pull request #267 from pi-hole/folderStructure"

This reverts commit fba3d10fa4, reversing
changes made to 4ee75f4167.
This commit is contained in:
DL6ER
2016-12-21 17:16:52 +01:00
parent fba3d10fa4
commit e188cb6fbc
83 changed files with 183 additions and 174 deletions

View File

@@ -1,21 +0,0 @@
<?php
require('auth.php');
if(!isset($_POST['domain'], $_POST['list'], $_POST['token'])) {
log_and_die("Missing POST variables");
}
check_cors();
check_csrf($_POST['token']);
check_domain();
switch($_POST['list']) {
case "white":
exec("sudo pihole -w -q -d ${_POST['domain']}");
break;
case "black":
exec("sudo pihole -b -q -d ${_POST['domain']}");
break;
}
?>