From d2b4401d1a5cf715395e65e71abded3be51e7e92 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 29 Jan 2006 02:55:34 +0000 Subject: Add filter option --- packages/spamd_db.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/spamd_db.php') diff --git a/packages/spamd_db.php b/packages/spamd_db.php index 09ea4052..f7dc1713 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -29,6 +29,9 @@ require("guiconfig.inc"); +if($_POST['filter']) + $filter = $_POST['filter']; + if($_GET['action'] or $_POST['action']) { if($_GET['action']) $action = $_GET['action']; @@ -106,6 +109,7 @@ if (typeof getURL == 'undefined') {

+Filter:

"; if($srcip == "") $dontdisplay = true; - if($lastseenip == $srcip) + 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; -- cgit v1.2.3