diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-29 02:55:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-29 02:55:34 +0000 |
commit | d2b4401d1a5cf715395e65e71abded3be51e7e92 (patch) | |
tree | e691256fcae280d33f0f6754aa71ab0f555e8955 | |
parent | f242b672713002a2e8fa6ab27a7051f64e35be1f (diff) | |
download | pfsense-packages-d2b4401d1a5cf715395e65e71abded3be51e7e92.tar.gz pfsense-packages-d2b4401d1a5cf715395e65e71abded3be51e7e92.tar.bz2 pfsense-packages-d2b4401d1a5cf715395e65e71abded3be51e7e92.zip |
Add filter option
-rw-r--r-- | packages/spamd_db.php | 12 |
1 files changed, 11 insertions, 1 deletions
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') { <?php if ($savemsg) print_info_box($savemsg); ?> <?php if (file_exists($d_natconfdirty_path)): ?><p> <?php endif; ?> +Filter: <input name="filter" value="<?=$filter?>"></input> <input type="submit" value="Filter"><p> <table width="99%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <?php @@ -161,8 +165,14 @@ if (typeof getURL == 'undefined') { $rowtext .= "</tr>"; 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; |