mirror of
https://github.com/pi-hole/web.git
synced 2026-05-18 14:48:55 +01:00
4d6ec1c5a5
After the change to 0.0.0.0 there will be no need for a password
13 lines
291 B
PHP
13 lines
291 B
PHP
<?php
|
|
if(!isset($_GET['domain'], $_GET['list']))
|
|
die();
|
|
|
|
switch($_GET['list']) {
|
|
case "white":
|
|
exec("/usr/local/bin/whitelist.sh -q -d ${_GET['domain']}");
|
|
break;
|
|
case "black":
|
|
exec("/usr/local/bin/blacklist.sh -q -d ${_GET['domain']}");
|
|
break;
|
|
}
|