Files
web/php/add.php
Mcat12 e61a28642a Changed return to die
A little Java slipped there...
2016-01-14 20:06:16 -05:00

11 lines
279 B
PHP

<?php
if(!isset($_GET['domain'], $_GET['list']))
die();
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");
}