Files
web/php/sub.php
Mcat12 5d1761b19d Implemented password checking
Currently allows anything for the password. This will be updated when I implment passwords on the main repo.
2016-02-28 14:52:54 -05:00

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;
}