From 0cde3fc20e5381a18c5ac0d00a43b7f156915b92 Mon Sep 17 00:00:00 2001 From: kc1awv Date: Tue, 27 Oct 2020 17:18:12 -0400 Subject: [PATCH] repeaters -> links --- include/config.inc.php.dist | 8 ++++---- include/{repeaters.php => links.php} | 10 +++++----- index.php | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) rename include/{repeaters.php => links.php} (88%) diff --git a/include/config.inc.php.dist b/include/config.inc.php.dist index fd13a8b..31bb169 100644 --- a/include/config.inc.php.dist +++ b/include/config.inc.php.dist @@ -27,10 +27,10 @@ $PageOptions['PageRefreshActive'] = true; $PageOptions['PageRefreshDelay'] = '10000'; // Page refresh time in miliseconds -$PageOptions['RepeatersPage'] = array(); -$PageOptions['RepeatersPage']['LimitTo'] = 99; // Number of Repeaters to show -$PageOptions['RepeatersPage']['IPModus'] = 'ShowLast2ByteOfIP'; // See possible options above -$PageOptions['RepeatersPage']['MasqueradeCharacter'] = '*'; // Character used for masquerade +$PageOptions['LinksPage'] = array(); +$PageOptions['LinksPage']['LimitTo'] = 99; // Number of Links to show +$PageOptions['LinksPage']['IPModus'] = 'ShowLast2ByteOfIP'; // See possible options above +$PageOptions['LinksPage']['MasqueradeCharacter'] = '*'; // Character used for masquerade $PageOptions['PeerPage'] = array(); diff --git a/include/repeaters.php b/include/links.php similarity index 88% rename from include/repeaters.php rename to include/links.php index e5aa1f6..8a0bc82 100644 --- a/include/repeaters.php +++ b/include/links.php @@ -9,7 +9,7 @@ Protocol ModuleIP'; } @@ -53,12 +53,12 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) { '.FormatSeconds(time()-$Reflector->Nodes[$i]->GetConnectTime()).' s '.$Reflector->Nodes[$i]->GetProtocol().' '.$Reflector->Nodes[$i]->GetLinkedModule().''; - if ($PageOptions['RepeatersPage']['IPModus'] != 'HideIP') { + if ($PageOptions['LinksPage']['IPModus'] != 'HideIP') { echo ''; $Bytes = explode(".", $Reflector->Nodes[$i]->GetIP()); - $MC = $PageOptions['RepeatersPage']['MasqueradeCharacter']; + $MC = $PageOptions['LinksPage']['MasqueradeCharacter']; if ($Bytes !== false && count($Bytes) == 4) { - switch ($PageOptions['RepeatersPage']['IPModus']) { + switch ($PageOptions['LinksPage']['IPModus']) { case 'ShowLast1ByteOfIP': echo $MC.'.'.$MC.'.'.$MC.'.'.$Bytes[3]; break; @@ -85,7 +85,7 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) { echo ''; } echo ''; - if ($i == $PageOptions['RepeatersPage']['LimitTo']) { $i = $Reflector->NodeCount()+1; } + if ($i == $PageOptions['LinksPage']['LimitTo']) { $i = $Reflector->NodeCount()+1; } } ?> diff --git a/index.php b/index.php index 234ad66..8024aee 100644 --- a/index.php +++ b/index.php @@ -108,7 +108,7 @@ $Reflector->LoadXML();