mirror of
https://github.com/pi-hole/web.git
synced 2026-02-22 10:45:22 +00:00
Currently allows anything for the password. This will be updated when I implment passwords on the main repo.
17 lines
383 B
PHP
17 lines
383 B
PHP
<?php
|
|
if(!isset($_GET['domain'], $_GET['list'], $_GET['pass']))
|
|
die();
|
|
|
|
include "functions.php";
|
|
|
|
if(!checkPass($_GET['pass']))
|
|
die("Wrong Password");
|
|
|
|
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;
|
|
} |