diff --git a/scripts/pi-hole/php/add.php b/scripts/pi-hole/php/add.php index d1d98ee7..d3ab2b4b 100644 --- a/scripts/pi-hole/php/add.php +++ b/scripts/pi-hole/php/add.php @@ -5,13 +5,14 @@ * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ + require_once('auth.php'); $type = $_POST['list']; // Perform all of the verification for list editing // when NOT invoked and authenticated from API -if (!$api) { +if (empty($api)) { list_verify($type); } diff --git a/scripts/pi-hole/php/get.php b/scripts/pi-hole/php/get.php index a14a3bb2..156622c7 100644 --- a/scripts/pi-hole/php/get.php +++ b/scripts/pi-hole/php/get.php @@ -4,9 +4,8 @@ * Network-wide ad blocking via your own hardware. * * This file is copyright under the latest version of the EUPL. -* Please see LICENSE file for your rights under this license. */ ?> +* Please see LICENSE file for your rights under this license. */ - - - +* Please see LICENSE file for your rights under this license. */ -