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.
This commit is contained in:
DC7JZB 2017-07-27 08:42:29 +02:00
parent f861b5a719
commit 6b42b47c6d
2 changed files with 6 additions and 1 deletions

View file

@ -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;

View file

@ -61,7 +61,8 @@ include "version.php";
} else {
echo " "._("Hotspot");
}
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?></h1>
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?><br>
<small>DMR-Id: <?php echo getDMRId($mmdvmconfigs) ?></small></h1><hr>
<h4>MMDVMHost by G4KLX Version: <?php echo getMMDVMHostVersion() ?><br>Firmware: <?php echo getFirmwareVersion();
if (defined("ENABLEDMRGATEWAY")) {
?>