"") { mwexec("spamdb -T -a \"<{$_POST['spamtrapemail']}>\""); mwexec("killall -HUP spamlogd"); $savemsg = $_POST['spamtrapemail'] . " added to spam trap database."; } /* spam trap e-mail address */ if($_GET['spamtrapemail'] <> "") { $status = exec("spamdb -T -a \"<{$_GET['spamtrapemail']}>\""); mwexec("killall -HUP spamlogd"); if($status) echo $status; else echo $_POST['spamtrapemail'] . " added to spam trap database."; exit; } /* spam trap e-mail address */ if($_GET['whitelist'] <> "") { $status = exec("spamdb -a \"<{$_GET['spamtrapemail']}>\""); mwexec("killall -HUP spamlogd"); if($status) echo $status; else echo $_POST['spamtrapemail'] . " added to whitelist database."; exit; } $pgtitle = "SpamD: Database"; include("head.inc"); ?>

Filter by test:Inverse filter (NOT):>
Limit:
Add spam trap E-mail address:

$limit) break; $dontdisplay = false; $rowtext = ""; $rowtext .= ""; $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)>25) { $col = str_replace("@"," @",$col); $col = str_replace("-"," -",$col); $col = str_replace("."," .",$col); } $rowtext .= ""; $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 .= ""; $rowtext .= ""; if($srcip == "") $dontdisplay = true; if($lastseenip == $srcip and $filter == "") $dontdisplay = true; if($dontdisplay == false) { echo $rowtext; $lastseenip = $srcip; } $rows++; } ?>
Type IP From To Attempts
 {$col}  "; $srcip = $pkgdb_split[1]; $lastrow = $rows - 1; $rowtext .= "\"Add "; $rowtext .= "\"Blacklist\" "; $rowtext .= "\"Delete\""; $rowtext .= "\"Spamtrap\" "; $rowtext .= " 


Note: Clicking on the action icons will invoke a AJAX query and the page will not refresh. Click refresh in you're browser if you wish to view the changes in status.