mirror of
https://github.com/pi-hole/web.git
synced 2026-04-27 04:04:00 +01:00
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:
@@ -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']}");
|
||||
|
||||
Reference in New Issue
Block a user