From 6b42b47c6d2feb499eb491899b7f52b1a9b01e0b Mon Sep 17 00:00:00 2001 From: DC7JZB Date: Thu, 27 Jul 2017 08:42:29 +0200 Subject: [PATCH] Show Used DMR-ID under the Callsign. Interesting when Using different ID's for Different Configs Added a Line between Callsign/ID and MMDVMHost Version. --- include/functions.php | 4 ++++ index.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 07e421b..548fcaa 100644 --- a/include/functions.php +++ b/include/functions.php @@ -155,6 +155,10 @@ function getCallsign($mmdvmconfigs) { return getConfigItem("General", "Callsign", $mmdvmconfigs); } +function getDMRId ($mmdvmconfigs) { + // returns DMRId from MMDVM-Config + return getConfigItem("DMR", "Id", $mmdvmconfigs); +} function getConfigItem($section, $key, $configs) { // retrieves the corresponding config-entry within a [section] $sectionpos = array_search("[" . $section . "]", $configs) + 1; diff --git a/index.php b/index.php index c343531..050a25e 100644 --- a/index.php +++ b/index.php @@ -61,7 +61,8 @@ include "version.php"; } else { echo " "._("Hotspot"); } - ?>: + ?>:
+ DMR-Id:

MMDVMHost by G4KLX Version:
Firmware: