From 581494d4c54c9ffe12f37b328cd33ff7576eca86 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sun, 17 Jan 2016 16:34:43 -0500 Subject: [PATCH] Updated adding/subtracting to/from lists --- php/add.php | 16 +++++++++------- php/sub.php | 12 +++++++++--- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/php/add.php b/php/add.php index 27b3445c..e780af81 100644 --- a/php/add.php +++ b/php/add.php @@ -1,10 +1,12 @@ > /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; +} \ No newline at end of file diff --git a/php/sub.php b/php/sub.php index d1110910..081da03f 100644 --- a/php/sub.php +++ b/php/sub.php @@ -1,6 +1,12 @@