diff --git a/include/functions.php b/include/functions.php index 91579d1..f72ae84 100644 --- a/include/functions.php +++ b/include/functions.php @@ -51,6 +51,13 @@ function getDMRNetwork() { return $network; } +function getDMRNetwork2() { + $fp = fopen('../config/DMRNetwork.txt', 'r'); + $network = fread($fp, filesize("../config/DMRNetwork.txt")); + fclose($fp); + return $network; +} + function getDMRMasterState() { $logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log"; $logLines = explode("\n", `egrep -h "(DMR, Logged into the master successfully)|(DMR, Closing DMR Network)" $logPath`); diff --git a/index.php b/index.php index 8d3f8d0..9ab6723 100644 --- a/index.php +++ b/index.php @@ -53,9 +53,20 @@ include "version.php"; } ?> -
+ diff --git a/scripts/switchnetwork.php b/scripts/switchnetwork.php index e755673..c299d22 100644 --- a/scripts/switchnetwork.php +++ b/scripts/switchnetwork.php @@ -70,7 +70,7 @@ if ($_GET['network'] == "BRANDMEISTER") { // exec( "sudo killall MMDVMHost && sudo ".MMDVMHOSTPATH."/MMDVMHost ".MMDVMINIPATH."/".MMDVMINIFILENAME." &" ); } ?> -