GetElement($INPUT, "reflectorlist"); $Reflectors = $XML->GetAllElements($Reflectorlist, "reflector"); } fclose($Result); ?> IP'; } ?> LoadFlags(); for ($i=0;$i<$Reflector->PeerCount();$i++) { if ($odd == "#FFFFFF") { $odd = "#F1FAFA"; } else { $odd = "#FFFFFF"; } echo ' '; $Name = $Reflector->Peers[$i]->GetCallSign(); $URL = ''; for ($j=1;$jGetElement($Reflectors[$j], "name")) { $URL = $XML->GetElement($Reflectors[$j], "dashboardurl"); } } if ($Result && $URL) { echo ' '; } else { echo ' '; } echo ' '; if ($PageOptions['PeerPage']['IPModus'] != 'HideIP') { echo ' '; } echo ' '; if ($i == $PageOptions['PeerPage']['LimitTo']) { $i = $Reflector->PeerCount()+1; } } ?>
# XLX Peer Last Heard Linked for Protocol Module
'.($i+1).''.$Name.''.$Name.''.date("d.m.Y H:i", $Reflector->Peers[$i]->GetLastHeardTime()).' '.FormatSeconds(time()-$Reflector->Peers[$i]->GetConnectTime()).' s '.$Reflector->Peers[$i]->GetProtocol().' '.$Reflector->Peers[$i]->GetLinkedModule().''; $Bytes = explode(".", $Reflector->Peers[$i]->GetIP()); if ($Bytes !== false && count($Bytes) == 4) { switch ($PageOptions['PeerPage']['IPModus']) { case 'ShowLast1ByteOfIP' : echo $PageOptions['PeerPage']['MasqueradeCharacter'].'.'.$PageOptions['PeerPage']['MasqueradeCharacter'].'.'.$PageOptions['PeerPage']['MasqueradeCharacter'].'.'.$Bytes[3]; break; case 'ShowLast2ByteOfIP' : echo $PageOptions['PeerPage']['MasqueradeCharacter'].'.'.$PageOptions['PeerPage']['MasqueradeCharacter'].'.'.$Bytes[2].'.'.$Bytes[3]; break; case 'ShowLast3ByteOfIP' : echo $PageOptions['PeerPage']['MasqueradeCharacter'].'.'.$Bytes[1].'.'.$Bytes[2].'.'.$Bytes[3]; break; default : echo $Reflector->Peers[$i]->GetIP(); } } echo '