diff --git a/include/functions.php b/include/functions.php index 2263608..1f44792 100644 --- a/include/functions.php +++ b/include/functions.php @@ -218,6 +218,17 @@ function showMode($mode, $mmdvmconfigs) { echo "badge-default\" title=\""._("Remote gateway configured - not checked!"); } break; + case "POCSAG Network": + if (getConfigItem("POCSAG Network", "GatewayAddress", $mmdvmconfigs) == "localhost" || getConfigItem("POCSAG Network", "GatewayAddress", $mmdvmconfigs) == "127.0.0.1") { + if (isProcessRunning("DAPNETGateway")) { + echo "badge-success"; + } else { + echo "badge-danger\" title=\""._("Gateway is down!"); + } + } else { + echo "badge-default\" title=\""._("Remote gateway configured - not checked!"); + } + break; default: if (isProcessRunning("MMDVMHost")) { echo "badge-success"; diff --git a/include/modes.php b/include/modes.php index 7116555..bb72e9e 100644 --- a/include/modes.php +++ b/include/modes.php @@ -16,6 +16,8 @@ + + diff --git a/include/ysfgatewayinfo.php b/include/ysfgatewayinfo.php deleted file mode 100644 index 2e9864b..0000000 --- a/include/ysfgatewayinfo.php +++ /dev/null @@ -1,95 +0,0 @@ - -
- -
-
- - - - "> - -
">
-
-
-
- -
-
- -
- - - 0) { - ?> - - - - - - - - - - -"; - echo ""; - for ($i = 0; $i < 5; $i++) { - if ($i == 0 && defined("ENABLEYSFREFLECTORSWITCHING")) { - echo""; - } else { - if ($i == 0) { - echo""; - } else { - echo""; - } - } - } - echo "\n"; - $counter++; - } - } -?> - -
$counter$reflector[$i]"; - $i++; - if ($reflector[$i] !=="") { - if (startsWith($reflector[$i],"http")) - echo ' '; - else - echo ' '; - } - echo"$reflector[$i]"; - $i++; - if ($reflector[$i] !=="") { - if (startsWith($reflector[$i],"http")) - echo ' '; - else - echo ' '; - } - echo"$reflector[$i]
-
-
-
- - diff --git a/index.php b/index.php index 467c16f..06a4fab 100644 --- a/index.php +++ b/index.php @@ -218,9 +218,9 @@ if (defined("SHOWLOCALTX")) { include "include/localtx_ajax.php"; showLapTime("localtx_ajax"); } -if (defined("ENABLEYSFGATEWAY")) { - include "include/ysfgatewayinfo.php"; - showLapTime("ysfgatewayinfo"); +if (defined("ENABLEYSFGATEWAY")|| defined("ENABLEDMRGATEWAY")) { + include "include/gatewayinfo.php"; + showLapTime("gatewayinfo"); } ?>
diff --git a/setup.php b/setup.php index b0d06f0..255b129 100644 --- a/setup.php +++ b/setup.php @@ -115,7 +115,7 @@ include "include/tools.php";

-
>
+
>
diff --git a/version.php b/version.php index ff5fdec..1791064 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@