diff --git a/dashboard.xrf/pgs/repeaters.php b/dashboard.xrf/pgs/repeaters.php index 7c43411..d82e49a 100644 --- a/dashboard.xrf/pgs/repeaters.php +++ b/dashboard.xrf/pgs/repeaters.php @@ -1,90 +1,93 @@
| # | -Flag | -DV Station | -Band | -Last Heard | -Linked for | -Protocol | -Module | +# | +Flag | +DV Station | +Band | +Last Heard | +Linked for | +Protocol | +Module | IP'; + echo ' +IP | '; } ?> -
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| '.($i+1).' | -';
- list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign());
- if (file_exists("./img/flags/".$Flag.".png")) {
- echo ' '.$Name.'';
- }
- echo ' |
- Nodes[$i]->GetSuffix(); - echo '" class="pl" target="_blank">'.$Reflector->Nodes[$i]->GetCallSign(); - if ($Reflector->Nodes[$i]->GetSuffix() != "") { echo '-'.$Reflector->Nodes[$i]->GetSuffix(); } - echo ' | -'; - if (($Reflector->Nodes[$i]->GetPrefix() == 'REF') || ($Reflector->Nodes[$i]->GetPrefix() == 'XRF')) { - switch ($Reflector->Nodes[$i]->GetPrefix()) { - case 'REF' : echo 'REF-Link'; break; - case 'XRF' : echo 'XRF-Link'; break; - } - } - else { - switch ($Reflector->Nodes[$i]->GetSuffix()) { - case 'A' : echo '23cm'; break; - case 'B' : echo '70cm'; break; - case 'C' : echo '2m'; break; - case 'D' : echo 'Dongle'; break; - case 'G' : echo 'Internet-Gateway'; break; - default : echo ''; - } - } - echo ' | -'.date("d.m.Y H:i", $Reflector->Nodes[$i]->GetLastHeardTime()).' | -'.FormatSeconds(time()-$Reflector->Nodes[$i]->GetConnectTime()).' s | -'.$Reflector->Nodes[$i]->GetProtocol().' | -'.$Reflector->Nodes[$i]->GetLinkedModule().' | '; - if ($PageOptions['RepeatersPage']['IPModus'] != 'HideIP') { - echo ' -'; - $Bytes = explode(".", $Reflector->Nodes[$i]->GetIP()); - $MC = $PageOptions['RepeatersPage']['MasqueradeCharacter']; - if ($Bytes !== false && count($Bytes) == 4) { - switch ($PageOptions['RepeatersPage']['IPModus']) { - case 'ShowLast1ByteOfIP' : echo $MC.'.'.$MC.'.'.$MC.'.'.$Bytes[3]; break; - case 'ShowLast2ByteOfIP' : echo $MC.'.'.$MC.'.'.$Bytes[2].'.'.$Bytes[3]; break; - case 'ShowLast3ByteOfIP' : echo $MC.'.'.$Bytes[1].'.'.$Bytes[2].'.'.$Bytes[3]; break; - default : echo $Reflector->Nodes[$i]->GetIP(); - } - } else { - $ipstr = $Reflector->Nodes[$i]->GetIP(); - $count = substr_count($ipstr, ":"); - if ($count > 1) { - if (1 == substr_count($ipstr, "::")) { $ipstr = str_replace("::", str_repeat(":", 9 - $count), $ipstr); } - if (7 == substr_count($ipstr, ":")) { - echo $MC.':'.$MC.':'.$MC.':'.$MC; - $Bytes = explode(":", $ipstr); - for( $k=4; $k<8; $k++) { echo (0==strlen($Bytes[$k])) ? ':0' : ':'.$Bytes[$k]; } + echo ' | ||||||||
| '.($i+1).' | +';
+ list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign());
+ if (file_exists("./img/flags/".$Flag.".png")) {
+ echo ' '.$Name.'';
+ }
+ echo ' |
+ Nodes[$i]->GetSuffix(); + echo '" class="pl" target="_blank">'.$Reflector->Nodes[$i]->GetCallSign(); + if ($Reflector->Nodes[$i]->GetSuffix() != "") { echo '-'.$Reflector->Nodes[$i]->GetSuffix(); } + echo ' | +'; + if (($Reflector->Nodes[$i]->GetPrefix() == 'REF') || ($Reflector->Nodes[$i]->GetPrefix() == 'XRF')) { + switch ($Reflector->Nodes[$i]->GetPrefix()) { + case 'REF' : echo 'REF-Link'; break; + case 'XRF' : echo 'XRF-Link'; break; + } + } + else { + switch ($Reflector->Nodes[$i]->GetSuffix()) { + case 'A' : echo '23cm'; break; + case 'B' : echo '70cm'; break; + case 'C' : echo '2m'; break; + case 'D' : echo 'Dongle'; break; + case 'G' : echo 'Internet-Gateway'; break; + default : echo ''; + } + } + echo ' | +'.date("d.m.Y H:i", $Reflector->Nodes[$i]->GetLastHeardTime()).' | +'.FormatSeconds(time()-$Reflector->Nodes[$i]->GetConnectTime()).' s | +'.$Reflector->Nodes[$i]->GetProtocol().' | +'.$Reflector->Nodes[$i]->GetLinkedModule().' | '; + if ($PageOptions['RepeatersPage']['IPModus'] != 'HideIP') { + echo ''; + $Bytes = explode(".", $Reflector->Nodes[$i]->GetIP()); + $MC = $PageOptions['RepeatersPage']['MasqueradeCharacter']; + if ($Bytes !== false && count($Bytes) == 4) { + switch ($PageOptions['RepeatersPage']['IPModus']) { + case 'ShowLast1ByteOfIP': + echo $MC.'.'.$MC.'.'.$MC.'.'.$Bytes[3]; + break; + case 'ShowLast2ByteOfIP': + echo $MC.'.'.$MC.'.'.$Bytes[2].'.'.$Bytes[3]; break; + case 'ShowLast3ByteOfIP': + echo $MC.'.'.$Bytes[1].'.'.$Bytes[2].'.'.$Bytes[3]; + break; + default: + echo $Reflector->Nodes[$i]->GetIP(); + } + } else { + $ipstr = $Reflector->Nodes[$i]->GetIP(); + $count = substr_count($ipstr, ":"); + if ($count > 1) { + if (1 == substr_count($ipstr, "::")) { $ipstr = str_replace("::", str_repeat(":", 9 - $count), $ipstr); } + if (7 == substr_count($ipstr, ":")) { + echo $MC.':'.$MC.':'.$MC.':'.$MC.':'.$MC.':'.$MC; + $Bytes = explode(":", $ipstr); + for( $k=6; $k<8; $k++) { echo (0==strlen($Bytes[$k])) ? ':0' : ':'.$Bytes[$k]; } + } } } - } - echo ' | '; + echo ''; } - echo ' -