\n";
echo "NodeAtributesIPAddressProtocolConnect Time\n";
foreach ($userarr as $user) {
$attrlist = array();
$f = preg_split("/[\s,]+/",$user);
if($f[1] == "") continue;
$lurker = False;
$a = preg_split("//",$f[2]);
foreach ($a as $aa) {
array_push($attrlist,$attributes[$aa]);
if ($aa == "L") $lurker = True;
}
if($lurker) continue;
if($f[2] == "connected:") {
$f[2] = "";
$f[4] = $f[3];
}
if (substr($f[1],0,3) == "stn" && is_numeric(substr($f[1],3)) && $protoarr[$f[1]] == "SpeakFreely") {
$node = '
'.$f[1].'';
} elseif ($protoarr[$f[1]] == "EchoLink") {
$dash=strpos($f[1],"-");
if ($dash>0) {
$call=substr($f[1],0,$dash);
} else {
$call=$f[1];
}
$node = '
'.$f[1].'';
} else {
$node = $f[1];
}
if($portarr[$f[1]] == "T" || preg_match("/T/",$f[2])) {
if (!preg_match("/T/",$f[2])) $f[2] .= $portarr[$f[1]];
echo "".$node."(".$f[2].")";
}else{
echo "".$node."(".$f[2].")";
}
echo join(' ',$attrlist);
echo '
'.$iparr[$f[1]].''.$protoarr[$f[1]].''.$f[4]."\n";
}
echo "\n";
?>