/tmp/snort_block.cache');
sleep(3);
$ips_array = file('/tmp/snort_block.cache');
// $ips_array = split("\n", $ips);
$counter = 0;
foreach($ips_array as $ip) {
if(!$ip)
continue;
$ww_ip = str_replace(" ", "", $ip);
$counter++;
if($associatealertip)
$alert_description = get_snort_alert($ww_ip);
else
$alert_description = "";
echo "\n";
echo "\n";
echo "\n![\"Delete\" \"Delete\"](\"../themes/{$g['theme']}/images/icons/icon_x.gif\") | ";
echo "\n {$ww_ip} | ";
echo "\n {$alert_description} | ";
echo "\n ";
}
echo "\n | ";
if($counter < 1)
echo "\nThere are currently no items being blocked by snort. | ";
else
echo "\n{$counter} items listed. | ";
?>
|