mirror of
https://github.com/pi-hole/web.git
synced 2026-02-23 11:16:05 +00:00
13 lines
285 B
PHP
13 lines
285 B
PHP
<?php
|
|
if(!isset($_GET['domain'], $_GET['list']))
|
|
die();
|
|
|
|
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;
|
|
}
|