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
+6
View File
@@ -6,6 +6,12 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license */
if(!isset($api))
{
die("Direct call to api_FTL.php is not allowed!");
}
require "scripts/pi-hole/php/password.php";
require "scripts/pi-hole/php/auth.php";
+6 -1
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";
+1 -1
View File
@@ -104,7 +104,7 @@ function updateQueryTypes() {
var colors = [];
// Get colors from AdminLTE
$.each($.AdminLTE.options.colors, function(key, value) { colors.push(value); });
var v = [], c = [], k = [];
var v = [], c = [], k = [], iter;
// Collect values and colors, and labels
if(data.hasOwnProperty("querytypes"))
{