0) $configs[$key] = $value; } } $progname = basename($_SERVER['SCRIPT_FILENAME'],".php"); $rev=$version; //$MYCALL=strtoupper($callsign); $MYCALL=strtoupper($configs['gatewayCallsign']); // Check if the config file exists if (file_exists('/etc/pistar-css.ini')) { $piStarCssFile = '/etc/pistar-css.ini'; if (fopen($piStarCssFile,'r')) { $piStarCss = parse_ini_file($piStarCssFile, true); } if ($piStarCss['BannerH1']['Enabled']) { $piStarCssBannerH1 = $piStarCss['BannerH1']['Text']; } if ($piStarCss['BannerExtText']['Enabled']) { $piStarCssBannerExtTxt = $piStarCss['BannerExtText']['Text']; } } //Load the Pi-Star Release file $pistarReleaseConfig = '/etc/pistar-release'; $configPistarRelease = array(); $configPistarRelease = parse_ini_file($pistarReleaseConfig, true); ?> \n"; ?> <?php echo "$MYCALL"." - ".$lang['digital_voice']." ".$lang['dashboard'];?>
Hostname:
CDN: /

CDN

".$piStarCssBannerH1."\n"; } ?> ".$piStarCssBannerExtTxt."

\n"; }?>

| | '.$lang['live_logs'].' |'."\n"; echo ' '.$lang['power'].' |'."\n"; } ?>

'."\n"; echo ''."\n"; echo '
'."\n"; include 'dstarrepeater/system.php'; // Basic System Info echo '
'."\n"; echo '
'."\n"; } // First lets figure out if we are in MMDVMHost mode, or dstarrepeater mode; if (file_exists('/etc/dstar-radio.mmdvmhost')) { include 'config/config.php'; // MMDVMDash Config include_once 'mmdvmhost/tools.php'; // MMDVMDash Tools function getMMDVMConfigFileContent() { // loads /etc/mmdvmhost into array for further use $conf = array(); if ($configs = @fopen('/etc/mmdvmhost', 'r')) { while ($config = fgets($configs)) { array_push($conf, trim ( $config, " \t\n\r\0\x0B")); } fclose($configs); } return $conf; } $mmdvmconfigfile = getMMDVMConfigFileContent(); $dashboardRowOpen = true; echo '
'."\n"; // Pairs .nav + .content so they stretch to equal height echo ''."\n"; echo '
'."\n"; $testMMDVModeDSTARnet = getConfigItem("D-Star Network", "Enable", $mmdvmconfigs); if ( $testMMDVModeDSTARnet == 1 ) { // If D-Star network is enabled, add these extra features. if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option echo ''."\n"; echo ''."\n"; echo '
'."\n"; include 'dstarrepeater/link_manager.php'; // D-Star Link Manager echo "
\n"; } echo ''."\n"; echo '
'."\n"; include 'dstarrepeater/css_connections.php'; // dstarrepeater gateway config echo '
'."\n"; } if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option echo ''."\n"; echo '
'."\n"; include 'mmdvmhost/bm_links.php'; // BM Links echo '
'."\n"; } if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Options include 'mmdvmhost/bm_manager.php'; // BM DMR Link Manager } if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option echo ''."\n"; echo '
'."\n"; include 'mmdvmhost/tgif_links.php'; // TGIF Links echo '
'."\n"; } if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Options include 'mmdvmhost/tgif_manager.php'; // TGIF DMR Link Manager } $testMMDVModeYSFnet = getConfigItem("System Fusion Network", "Enable", $mmdvmconfigs); if ( $testMMDVModeYSFnet == 1 ) { // If YSF network is enabled, add these extra features. if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option include 'mmdvmhost/ysf_manager.php'; // YSF Links } } $testMMDVModeP25net = getConfigItem("P25 Network", "Enable", $mmdvmconfigs); if ( $testMMDVModeP25net == 1 ) { // If P25 network is enabled, add these extra features. if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option include 'mmdvmhost/p25_manager.php'; // P25 Links } } $testMMDVModeNXDNnet = getConfigItem("NXDN Network", "Enable", $mmdvmconfigs); if ( $testMMDVModeNXDNnet == 1 ) { // If NXDN network is enabled, add these extra features. if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option include 'mmdvmhost/nxdn_manager.php'; // NXDN Links } } $testMMDVModeM17net = getConfigItem("M17 Network", "Enable", $mmdvmconfigs); if ( $testMMDVModeM17net == 1 ) { // If NXDN network is enabled, add these extra features. if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option include 'mmdvmhost/m17_manager.php'; // M17 Links } } echo ''."\n"; echo '
'."\n"; include 'mmdvmhost/lh.php'; // MMDVMDash Last Herd echo '
'."\n"; echo "
\n"; echo '
'."\n"; include 'mmdvmhost/localtx.php'; // MMDVMDash Local Trasmissions echo '
'."\n"; // If POCSAG is enabled, show the information pannel $testMMDVModePOCSAG = getConfigItem("POCSAG Network", "Enable", $mmdvmconfigfile); if ( $testMMDVModePOCSAG == 1 ) { echo ''."\n"; echo "
\n"; echo '
'."\n"; include 'mmdvmhost/pages.php'; // POCSAG Messages echo '
'."\n"; } } elseif (file_exists('/etc/dstar-radio.dstarrepeater')) { echo '
'."\n"; include 'dstarrepeater/gateway_software_config.php'; // dstarrepeater gateway config echo ''."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Options include 'dstarrepeater/link_manager.php'; // D-Star Link Manager echo "
\n"; } echo ''."\n"; echo '
'."\n"; include 'dstarrepeater/css_connections.php'; // dstarrepeater gateway config echo '
'."\n"; echo ''."\n"; echo '
'."\n"; include 'dstarrepeater/last_herd.php'; //dstarrepeater Last Herd echo '
'."\n"; echo "
\n"; echo '
'."\n"; include 'dstarrepeater/local_tx.php'; //dstarrepeater Local Transmissions echo '
'."\n"; echo '
'."\n"; } else { echo '
'."\n"; //We dont know what mode we are in - fail... echo "

未定义工作模式...

\n"; echo ''."\n"; } ?>
\n"; } ?>