";
$rowtext .= "";
$pkgdb_split = split("\|", $pkgdb_row);
$column = 0;
foreach($pkgdb_split as $col) {
if($column == 2) {
if(strstr($pkgdb_row, "TRAPPED")) {
$column++;
continue;
}
}
/* dont display these columns */
if($column == 4 || $column == 5 || $column == 6 || $column == 8) {
$column++;
continue;
}
/* don't display if column blank */
$col = str_replace("<","",$col);
$col = str_replace(">","",$col);
/* if string is really long allow it to be wrapped by
* replacing @ with space@
*/
if(strlen($col)>40) {
$col = str_replace("@"," @",$col);
$col = str_replace("-"," -",$col);
$col = str_replace("."," .",$col);
}
$rowtext .= "{$col} | ";
$column++;
}
if(strstr($pkgdb_row, "TRAPPED")) {
for($x=0; $x<3; $x++) {
$rowtext .= " | ";
}
}
if(strstr($pkgdb_row, "SPAMTRAP")) {
for($x=0; $x<3; $x++) {
$rowtext .= " | ";
}
}
$rowtext .= "";
$srcip = $pkgdb_split[1];
$lastrow = $rows - 1;
$rowtext .= " ";
$rowtext .= " ";
$rowtext .= "";
$rowtext .= " ";
$rowtext .= " | ";
$rowtext .= "
";
if($srcip == "")
$dontdisplay = true;
if($lastseenip == $srcip and $filter == "")
$dontdisplay = true;
if($filter <> "") {
if(strstr($rowtext, $filter) == true)
$dontdisplay = false;
else
$dontdisplay = true;
}
if($dontdisplay == false) {
echo $rowtext;
$lastseenip = $srcip;
}
$rows++;
}
?>