|
|
|
@ -21,8 +21,7 @@ $Reflector->LoadFlags();
|
|
|
|
|
|
|
|
|
|
|
|
for ($i=0;$i<$Reflector->NodeCount();$i++) {
|
|
|
|
for ($i=0;$i<$Reflector->NodeCount();$i++) {
|
|
|
|
|
|
|
|
|
|
|
|
echo '
|
|
|
|
echo '<tr class="table-center">
|
|
|
|
<tr class="table-center">
|
|
|
|
|
|
|
|
<td>'.($i+1).'</td>
|
|
|
|
<td>'.($i+1).'</td>
|
|
|
|
<td>';
|
|
|
|
<td>';
|
|
|
|
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign());
|
|
|
|
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign());
|
|
|
|
@ -58,16 +57,21 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) {
|
|
|
|
<td>'.$Reflector->Nodes[$i]->GetProtocol().'</td>
|
|
|
|
<td>'.$Reflector->Nodes[$i]->GetProtocol().'</td>
|
|
|
|
<td>'.$Reflector->Nodes[$i]->GetLinkedModule().'</td>';
|
|
|
|
<td>'.$Reflector->Nodes[$i]->GetLinkedModule().'</td>';
|
|
|
|
if ($PageOptions['RepeatersPage']['IPModus'] != 'HideIP') {
|
|
|
|
if ($PageOptions['RepeatersPage']['IPModus'] != 'HideIP') {
|
|
|
|
echo '
|
|
|
|
echo '<td>';
|
|
|
|
<td>';
|
|
|
|
|
|
|
|
$Bytes = explode(".", $Reflector->Nodes[$i]->GetIP());
|
|
|
|
$Bytes = explode(".", $Reflector->Nodes[$i]->GetIP());
|
|
|
|
$MC = $PageOptions['RepeatersPage']['MasqueradeCharacter'];
|
|
|
|
$MC = $PageOptions['RepeatersPage']['MasqueradeCharacter'];
|
|
|
|
if ($Bytes !== false && count($Bytes) == 4) {
|
|
|
|
if ($Bytes !== false && count($Bytes) == 4) {
|
|
|
|
switch ($PageOptions['RepeatersPage']['IPModus']) {
|
|
|
|
switch ($PageOptions['RepeatersPage']['IPModus']) {
|
|
|
|
case 'ShowLast1ByteOfIP' : echo $MC.'.'.$MC.'.'.$MC.'.'.$Bytes[3]; break;
|
|
|
|
case 'ShowLast1ByteOfIP':
|
|
|
|
case 'ShowLast2ByteOfIP' : echo $MC.'.'.$MC.'.'.$Bytes[2].'.'.$Bytes[3]; break;
|
|
|
|
echo $MC.'.'.$MC.'.'.$MC.'.'.$Bytes[3];
|
|
|
|
case 'ShowLast3ByteOfIP' : echo $MC.'.'.$Bytes[1].'.'.$Bytes[2].'.'.$Bytes[3]; break;
|
|
|
|
break;
|
|
|
|
default : echo $Reflector->Nodes[$i]->GetIP();
|
|
|
|
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 {
|
|
|
|
} else {
|
|
|
|
$ipstr = $Reflector->Nodes[$i]->GetIP();
|
|
|
|
$ipstr = $Reflector->Nodes[$i]->GetIP();
|
|
|
|
@ -75,16 +79,15 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) {
|
|
|
|
if ($count > 1) {
|
|
|
|
if ($count > 1) {
|
|
|
|
if (1 == substr_count($ipstr, "::")) { $ipstr = str_replace("::", str_repeat(":", 9 - $count), $ipstr); }
|
|
|
|
if (1 == substr_count($ipstr, "::")) { $ipstr = str_replace("::", str_repeat(":", 9 - $count), $ipstr); }
|
|
|
|
if (7 == substr_count($ipstr, ":")) {
|
|
|
|
if (7 == substr_count($ipstr, ":")) {
|
|
|
|
echo $MC.':'.$MC.':'.$MC.':'.$MC;
|
|
|
|
echo $MC.':'.$MC.':'.$MC.':'.$MC.':'.$MC.':'.$MC;
|
|
|
|
$Bytes = explode(":", $ipstr);
|
|
|
|
$Bytes = explode(":", $ipstr);
|
|
|
|
for( $k=4; $k<8; $k++) { echo (0==strlen($Bytes[$k])) ? ':0' : ':'.$Bytes[$k]; }
|
|
|
|
for( $k=6; $k<8; $k++) { echo (0==strlen($Bytes[$k])) ? ':0' : ':'.$Bytes[$k]; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo '</td>';
|
|
|
|
echo '</td>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo '
|
|
|
|
echo '</tr>';
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
if ($i == $PageOptions['RepeatersPage']['LimitTo']) { $i = $Reflector->NodeCount()+1; }
|
|
|
|
if ($i == $PageOptions['RepeatersPage']['LimitTo']) { $i = $Reflector->NodeCount()+1; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|