From e6c1b5f948986f4e40754bb8bef2b1719a332628 Mon Sep 17 00:00:00 2001 From: narspt Date: Wed, 31 Mar 2021 00:41:18 +0100 Subject: [PATCH 1/3] Create modules.php --- dashboard/pgs/modules.php | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 dashboard/pgs/modules.php diff --git a/dashboard/pgs/modules.php b/dashboard/pgs/modules.php new file mode 100644 index 0000000..e37518d --- /dev/null +++ b/dashboard/pgs/modules.php @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + +GetReflectorName(), 3, 3); +$NumberOfModules = isset($PageOptions['NumberOfModules']) ? min(max($PageOptions['NumberOfModules'],0),26) : 26; + +$odd = ""; + +for ($i = 1; $i <= $NumberOfModules; $i++) { + + $module = chr(ord('A')+($i-1)); + + if ($odd == "#FFFFFF") { $odd = "#F1FAFA"; } else { $odd = "#FFFFFF"; } + + echo ' + + + + + + + + + + + + '; +} + +?> + +
ModuleNameUsersDPlusDExtraDCSDMR
URCALLDTMFURCALLDTMFURCALLDTMF
'. $module .''. (empty($PageOptions['ModuleNames'][$module]) ? '-' : $PageOptions['ModuleNames'][$module]) .''. count($Reflector->GetNodesInModulesByID($module)) .''. 'REF' . $ReflectorNumber . $module . 'L' .''. (is_numeric($ReflectorNumber) ? '*' . sprintf('%01d',$ReflectorNumber) . (($i<=4)?$module:sprintf('%02d',$i)) : '-') .''. 'XRF' . $ReflectorNumber . $module . 'L' .''. (is_numeric($ReflectorNumber) ? 'B' . sprintf('%01d',$ReflectorNumber) . (($i<=4)?$module:sprintf('%02d',$i)) : '-') .''. 'DCS' . $ReflectorNumber . $module . 'L' .''. (is_numeric($ReflectorNumber) ? 'D' . sprintf('%01d',$ReflectorNumber) . (($i<=4)?$module:sprintf('%02d',$i)) : '-') .''. (4000+$i) .'
From 60f233cae1ccb665515149ce88cbb52b241b514c Mon Sep 17 00:00:00 2001 From: narspt Date: Wed, 31 Mar 2021 00:47:03 +0100 Subject: [PATCH 2/3] Update index.php --- dashboard/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/index.php b/dashboard/index.php index f72d7fb..19b8833 100755 --- a/dashboard/index.php +++ b/dashboard/index.php @@ -138,7 +138,8 @@ else { Users / Modules Repeaters / Nodes (NodeCount(); ?>) Peers (PeerCount(); ?>) - Reflectorlist + Modules list + Reflectors list Date: Wed, 31 Mar 2021 00:50:07 +0100 Subject: [PATCH 3/3] Update config.inc.php --- dashboard/pgs/config.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dashboard/pgs/config.inc.php b/dashboard/pgs/config.inc.php index 09f1a13..e38164e 100755 --- a/dashboard/pgs/config.inc.php +++ b/dashboard/pgs/config.inc.php @@ -22,6 +22,8 @@ $PageOptions['DashboardVersion'] = '2.4.1'; // Dashboard Ve $PageOptions['PageRefreshActive'] = true; // Activate automatic refresh $PageOptions['PageRefreshDelay'] = '10000'; // Page refresh time in miliseconds +$PageOptions['NumberOfModules'] = 10; // Number of Modules enabled on reflector + $PageOptions['RepeatersPage'] = array(); $PageOptions['RepeatersPage']['LimitTo'] = 99; // Number of Repeaters to show $PageOptions['RepeatersPage']['IPModus'] = 'ShowFullIP'; // See possible options above