mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 21:46:22 +00:00
Currently allows anything for the password. This will be updated when I implment passwords on the main repo.
17 lines
389 B
PHP
17 lines
389 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 -d ${_GET['domain']}");
|
|
break;
|
|
case "black":
|
|
exec("/usr/local/bin/blacklist.sh -q -d ${_GET['domain']}");
|
|
break;
|
|
} |