Use piholeFTLConfig() to resolve pihole-FTL.conf contents

Signed-off-by: Samu Voutilainen <smar@smar.fi>
This commit is contained in:
Samu Voutilainen
2020-01-19 13:29:39 +02:00
parent e70b9305bb
commit b7e9bd492c
2 changed files with 4 additions and 18 deletions
+2 -8
View File
@@ -7,16 +7,10 @@
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
require "scripts/pi-hole/php/savesettings.php";
require_once "scripts/pi-hole/php/FTL.php";
// Reread ini file as things might have been changed
$setupVars = parse_ini_file("/etc/pihole/setupVars.conf");
if(is_readable($piholeFTLConfFile))
{
$piholeFTLConf = parse_ini_file($piholeFTLConfFile);
}
else
{
$piholeFTLConf = array();
}
$piholeFTLConf = piholeFTLConfig();
// Handling of PHP internal errors
$last_error = error_get_last();