diff --git a/include/disk.php b/include/disk.php
index 180f8e4..3b8f3d2 100644
--- a/include/disk.php
+++ b/include/disk.php
@@ -4,10 +4,8 @@
-
-
Filesystem |
Mount |
Use |
@@ -17,71 +15,46 @@
-
'N.A',
- 'used' => 'N.A',
- 'free' => 'N.A',
- 'percent_used' => 0,
- 'mount' => 'N.A',
- 'filesystem' => 'N.A',
- );
-}
-else
-{
- $mounted_points = array();
- $key = 0;
-
- foreach ($df as $mounted)
- {
- list($filesystem, $type, $total, $used, $free, $percent, $mount) = explode(',', $mounted);
-
- if ((strpos($type, 'tmpfs') !== false) && (strpos($mount, '/mnt/ramdisk') === false))
- continue;
-
-
-?>
-
-
- |
- |
- |
- |
- |
- |
-
-
- 'N.A',
+ 'used' => 'N.A',
+ 'free' => 'N.A',
+ 'percent_used' => 0,
+ 'mount' => 'N.A',
+ 'filesystem' => 'N.A',
+ );
+ } else {
+ $mounted_points = array();
+ $key = 0;
+ foreach ($df as $mounted) {
+ list($filesystem, $type, $total, $used, $free, $percent, $mount) = explode(',', $mounted);
+ if ((strpos($type, 'tmpfs') !== false) && (strpos($mount, '/mnt/ramdisk') === false))
+ continue;
+ ?>
+
+ |
+ |
+ |
+ |
+ |
+ |
+
+
-
-
-
+?>
-
-
diff --git a/include/functions.php b/include/functions.php
index 8f3ace7..8bcd938 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -58,7 +58,6 @@ function getConfigItem($section, $key, $configs) {
}
$sectionpos++;
}
-
return substr($configs[$sectionpos], strlen($key) + 1);
}
@@ -109,26 +108,9 @@ function showMode($mode, $mmdvmconfigs) {
0 ) {
- $source = "Net";
- }
-
+ $source = "RF";
+ if (strpos($logLine,"network") > 0 ) {
+ $source = "Net";
+ }
+
if ( $source == "RF") {
$to = substr($logLine, strpos($logLine, "to") + 3);
if (strlen($to) == 5 && startsWith($to, "4")) {
@@ -556,5 +513,4 @@ function getName($callsign) {
$name = substr($name, strpos($name,$delimiter)+1);
return $name;
}
-
?>
diff --git a/include/init.php b/include/init.php
index d633706..06f8d44 100644
--- a/include/init.php
+++ b/include/init.php
@@ -6,9 +6,9 @@ $reverseLogLinesMMDVM = $logLinesMMDVM;
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
$lastHeard = getLastHeard($reverseLogLinesMMDVM);
if (defined("ENABLEYSFGATEWAY")) {
- $YSFGatewayconfigs = getYSFGatewayConfig();
- $logLinesYSFGateway = getYSFGatewayLog();
- $reverseLogLinesYSFGateway = $logLinesYSFGateway;
- array_multisort($reverseLogLinesYSFGateway,SORT_DESC);
+ $YSFGatewayconfigs = getYSFGatewayConfig();
+ $logLinesYSFGateway = getYSFGatewayLog();
+ $reverseLogLinesYSFGateway = $logLinesYSFGateway;
+ array_multisort($reverseLogLinesYSFGateway,SORT_DESC);
}
?>
diff --git a/include/lh.php b/include/lh.php
index 8929768..9012484 100644
--- a/include/lh.php
+++ b/include/lh.php
@@ -56,7 +56,6 @@ for ($i = 0; ($i < $totalLH); $i++) {
}
echo"\n";
}
-
?>
diff --git a/include/localtx.php b/include/localtx.php
index 2237dcb..c45b0e6 100644
--- a/include/localtx.php
+++ b/include/localtx.php
@@ -32,7 +32,6 @@ $localTXList = getHeardList($reverseLogLinesMMDVM);
$listElem[8]";
}
echo"\n";
- $counter++;
}
}
?>
-
diff --git a/include/modes.php b/include/modes.php
index f2e6552..aa84bca 100644
--- a/include/modes.php
+++ b/include/modes.php
@@ -1,8 +1,6 @@
Enabled Modes
-
-
diff --git a/include/repeaterinfo.php b/include/repeaterinfo.php
index 45c8b8c..c5b7e97 100644
--- a/include/repeaterinfo.php
+++ b/include/repeaterinfo.php
@@ -1,7 +1,6 @@
Repeater Info
-
@@ -61,16 +60,16 @@
?>
enabled';
+ echo 'label-success">enabled';
} else {
- echo 'label-default">disabled';
+ echo 'label-default">disabled';
}
?> |
enabled';
+ echo 'label-success">enabled';
} else {
- echo 'label-default">disabled';
+ echo 'label-default">disabled';
}
?> |
Power
-
CPU-Temperature |
-
CPU-Frequency |
@@ -138,15 +134,11 @@
|
-
°C |
-
MHz |
diff --git a/include/tools.php b/include/tools.php
index 7df5ae4..e9a423e 100644
--- a/include/tools.php
+++ b/include/tools.php
@@ -26,7 +26,7 @@ function format_time($seconds) {
}
function startsWith($haystack, $needle) {
- return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
+ return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
}
function getMHZ($freq) {
@@ -36,8 +36,8 @@ function getMHZ($freq) {
function isProcessRunning($processname) {
exec("pgrep " . $processname, $pids);
if(empty($pids)) {
- // process not running!
- return false;
+ // process not running!
+ return false;
} else {
// process running!
return true;
diff --git a/include/txinfo.php b/include/txinfo.php
index 6e02173..83e49e3 100644
--- a/include/txinfo.php
+++ b/include/txinfo.php
@@ -22,22 +22,7 @@
-
-
+
diff --git a/index.php b/index.php
index 048a5b0..7b5232d 100644
--- a/index.php
+++ b/index.php
@@ -5,7 +5,6 @@ $time = $time[1] + $time[0];
$start = $time;
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
-
// do not touch this includes!!! Never ever!!!
include "config/config.php";
include "include/tools.php";
@@ -18,7 +17,6 @@ include "version.php";
-
@@ -28,11 +26,11 @@ include "version.php";
?>
-
+
-
+
-
+
-
-
- MMDVM-Dashboard by DG9VH
@@ -90,13 +86,11 @@ $total_time = round(($finish - $start), 4);
echo '';
?> |
stop refreshing';
} else {
echo 'start refreshing';
}
-
?>
| get your own at: https://github.com/dg9vh/MMDVMHost-Dashboard