mirror of
https://github.com/pi-hole/web.git
synced 2026-05-02 14:42:23 +01:00
Incorporate upstream changes
Signed-off-by: Matthias Rank <development@m-rank.de>
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
log_and_die('Not allowed (login session invalid or expired, please relogin on the Pi-hole dashboard)!');
|
||||
}
|
||||
|
||||
switch ($_REQUEST['action'])
|
||||
|
||||
switch ($_POST['action'])
|
||||
{
|
||||
case 'get': echo json_encode(echoCustomCNAMEEntries()); break;
|
||||
case 'add': echo json_encode(addCustomCNAMEEntry()); break;
|
||||
@@ -20,4 +21,6 @@
|
||||
default:
|
||||
die("Wrong action");
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
require_once "func.php";
|
||||
|
||||
$customDNSFile = "/etc/pihole/custom.list";
|
||||
|
||||
require_once('auth.php');
|
||||
|
||||
// Authentication checks
|
||||
|
||||
Reference in New Issue
Block a user