";
$rowtext .= "";
$pkgdb_split = split("\|", $pkgdb_row);
$rowtext .= "";
$srcip = $pkgdb_split[1];
$rowtext .= "Whitelist ";
$rowtext .= " | Blacklist ";
$rowtext .= " | ";
$column = 0;
foreach($pkgdb_split as $col) {
if($column == 4 || $column == 5 || $column == 6 || $column == 8) {
$column++;
continue;
}
if($col == "")
$dontdisplay = true;
$col = str_replace("<","",$col);
$col = str_replace(">","",$col);
$rowtext .= "{$col} | ";
$column++;
}
$rowtext .= " ";
if($srcip == "")
$dontdisplay = true;
if($lastseenip == $srcip and $filter == "")
$dontdisplay = true;
if($filter <> "") {
if(stristr($rowtext, $filter) == true)
$dontdisplay = false;
else
$dontdisplay = true;
}
if($dontdisplay == false) {
echo $rowtext;
$lastseenip = $srcip;
}
$rows++;
}
?>
|