mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
16 lines
403 B
PHP
16 lines
403 B
PHP
<?php
|
|
|
|
require_once "func.php";
|
|
|
|
$customDNSFile = "/etc/pihole/custom.list";
|
|
|
|
switch ($_REQUEST['action'])
|
|
{
|
|
case 'get': echo json_encode(echoCustomDNSEntries()); break;
|
|
case 'add': echo json_encode(addCustomDNSEntry()); break;
|
|
case 'delete': echo json_encode(deleteCustomDNSEntry()); break;
|
|
default:
|
|
die("Wrong action");
|
|
}
|
|
?>
|