mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Updated adding/subtracting to/from lists
This commit is contained in:
+9
-7
@@ -1,10 +1,12 @@
|
||||
<?php
|
||||
if(!isset($_GET['domain'], $_GET['list']))
|
||||
die();
|
||||
return;
|
||||
|
||||
if($_GET['list'] == "white")
|
||||
exec("/usr/local/bin/whitelist.sh ${_GET['domain']}");
|
||||
else {
|
||||
exec("echo '${_GET['domain']}' >> /etc/pihole/blacklist.txt");
|
||||
exec("sudo /usr/local/bin/gravity.sh");
|
||||
}
|
||||
switch($_GET['list']) {
|
||||
case "white":
|
||||
exec("/usr/local/bin/whitelist.sh -q ${_GET['domain']}");
|
||||
break;
|
||||
case "black":
|
||||
exec("/usr/local/bin/blacklist.sh -q ${_GET['domain']}");
|
||||
break;
|
||||
}
|
||||
Reference in New Issue
Block a user