Small security update to the indicidual API files

This commit is contained in:
DL6ER
2017-02-19 19:05:06 +01:00
parent 91c563692e
commit 8a0839f439
3 changed files with 13 additions and 2 deletions

View File

@@ -6,7 +6,12 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
$api = true;
if(!isset($api))
{
die("Direct call to api_PHP.php is not allowed!");
}
require "scripts/pi-hole/php/password.php";
require "scripts/pi-hole/php/auth.php";