From f242b672713002a2e8fa6ab27a7051f64e35be1f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 29 Jan 2006 02:39:51 +0000 Subject: Add spamd_db.php a tool that allows you to whitelist or blacklist items that are in the db. --- packages/spamd_db.php | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 packages/spamd_db.php (limited to 'packages/spamd_db.php') diff --git a/packages/spamd_db.php b/packages/spamd_db.php new file mode 100644 index 00000000..09ea4052 --- /dev/null +++ b/packages/spamd_db.php @@ -0,0 +1,181 @@ + + + +

+
+ + + + + +

+ + + + + + +
+ +
+
+ + + + + + + + + +"; + $rowtext .= ""; + $pkgdb_split = split("\|", $pkgdb_row); + $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 .= ""; + $column++; + } + $rowtext .= ""; + if($srcip == "") + $dontdisplay = true; + if($lastseenip == $srcip) + $dontdisplay = true; + if($dontdisplay == false) { + echo $rowtext; + $lastseenip = $srcip; + } + $rows++; + } +?> +
ActionTypeIPFromToAttempts
"; + $srcip = $pkgdb_split[1]; + $rowtext .= "Whitelist "; + $rowtext .= " | Blacklist "; + $rowtext .= "{$col}
+
+
+

+ + + -- cgit v1.2.3