Merge pull request #157 from dc7jzb/master

Show DMR-ID
This commit is contained in:
Kim - DG9VH 2017-07-27 09:55:46 +02:00 committed by GitHub
commit 5aa7ced9e3
2 changed files with 6 additions and 1 deletions

View file

@ -155,6 +155,10 @@ function getCallsign($mmdvmconfigs) {
return getConfigItem("General", "Callsign", $mmdvmconfigs); return getConfigItem("General", "Callsign", $mmdvmconfigs);
} }
function getDMRId ($mmdvmconfigs) {
// returns DMRId from MMDVM-Config
return getConfigItem("DMR", "Id", $mmdvmconfigs);
}
function getConfigItem($section, $key, $configs) { function getConfigItem($section, $key, $configs) {
// retrieves the corresponding config-entry within a [section] // retrieves the corresponding config-entry within a [section]
$sectionpos = array_search("[" . $section . "]", $configs) + 1; $sectionpos = array_search("[" . $section . "]", $configs) + 1;

View file

@ -61,7 +61,8 @@ include "version.php";
} else { } else {
echo " "._("Hotspot"); 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(); <h4>MMDVMHost by G4KLX Version: <?php echo getMMDVMHostVersion() ?><br>Firmware: <?php echo getFirmwareVersion();
if (defined("ENABLEDMRGATEWAY")) { if (defined("ENABLEDMRGATEWAY")) {
?> ?>