Implemented password checking

Currently allows anything for the password. This will be updated when I implment passwords on the main repo.
This commit is contained in:
Mcat12
2016-02-28 14:52:54 -05:00
parent ac5b43c5e7
commit 5d1761b19d
5 changed files with 82 additions and 13 deletions

View File

@@ -1,7 +1,12 @@
<?php
if(!isset($_GET['domain'], $_GET['list']))
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']}");