mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-11-17 21:51:49 -05:00
53 lines
2.0 KiB
PHP
53 lines
2.0 KiB
PHP
|
<table class="table table-striped table-hover">
|
||
|
<tr class="table-center">
|
||
|
<th class="col-md-1">#</th>
|
||
|
<th class="col-md-2">XLX Peer</th>
|
||
|
<th class="col-md-2">Last Heard</th>
|
||
|
<th class="col-md-2">Linked for</th>
|
||
|
<th class="col-md-2">Protocol</th>
|
||
|
<th class="col-md-1">Module</th><?php
|
||
|
|
||
|
if ($PageOptions['PeerPage']['IPModus'] != 'HideIP') {
|
||
|
echo '
|
||
|
<th class="col-md-2">IP</th>';
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
</tr>
|
||
|
<?php
|
||
|
|
||
|
$Reflector->LoadFlags();
|
||
|
|
||
|
for ($i=0;$i<$Reflector->PeerCount();$i++) {
|
||
|
|
||
|
echo '
|
||
|
<tr class="table-center">
|
||
|
<td>'.($i+1).'</td>
|
||
|
<td>'.$Reflector->Peers[$i]->GetCallSign().'</td>
|
||
|
<td>'.date("d.m.Y H:i", $Reflector->Peers[$i]->GetLastHeardTime()).'</td>
|
||
|
<td>'.FormatSeconds(time()-$Reflector->Peers[$i]->GetConnectTime()).' s</td>
|
||
|
<td>'.$Reflector->Peers[$i]->GetProtocol().'</td>
|
||
|
<td>'.$Reflector->Peers[$i]->GetLinkedModule().'</td>';
|
||
|
if ($PageOptions['PeerPage']['IPModus'] != 'HideIP') {
|
||
|
echo '
|
||
|
<td>';
|
||
|
$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 '<a href="http://'.$Reflector->Peers[$i]->GetIP().'" target="_blank" style="text-decoration:none;color:#000000;">'.$Reflector->Peers[$i]->GetIP().'</a>';
|
||
|
}
|
||
|
}
|
||
|
echo '</td>';
|
||
|
}
|
||
|
echo '
|
||
|
</tr>';
|
||
|
if ($i == $PageOptions['PeerPage']['LimitTo']) { $i = $Reflector->PeerCount()+1; }
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
|
||
|
</table>
|