From cb9f2d644631968824f7f8a11f27e2ae5db8e353 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Tue, 10 May 2016 17:57:05 +0200 Subject: [PATCH] improved configuration-readout, next try --- include/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index 8b65f33..74fad37 100644 --- a/include/functions.php +++ b/include/functions.php @@ -9,9 +9,9 @@ function getMMDVMHostVersion() { function getMMDVMConfig() { $mmdvmconfigs = array(); - if ($configs = fopen(MMDVMINIPATH."MMDVM.ini", 'r')) { + if ($configs = fopen(MMDVMINIPATH."MMDVM.new.ini", 'r')) { while ($config = fgets($configs)) { - array_push($mmdvmconfigs, substr($config, 0, -1)); + array_push($mmdvmconfigs, trim ( $config, " \t\n\r\0\x0B")); } fclose($configs); } @@ -19,7 +19,7 @@ function getMMDVMConfig() { } function getCallsign($mmdvmconfigs) { - return getConfigItem("general", "Callsign", $mmdvmconfigs); + return getConfigItem("General", "Callsign", $mmdvmconfigs); } function getConfigItem($section, $key, $configs) {