diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-04 23:24:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-04 23:24:05 +0000 |
commit | 525234cfd394fa751e2aeb7d8632800a49e0d015 (patch) | |
tree | 983e9e1a9d399357ac68805bf38a165b52d4fe71 /packages/spamd_db.php | |
parent | 16e56ca73893c931f1ef104387248f238164a94c (diff) | |
download | pfsense-packages-525234cfd394fa751e2aeb7d8632800a49e0d015.tar.gz pfsense-packages-525234cfd394fa751e2aeb7d8632800a49e0d015.tar.bz2 pfsense-packages-525234cfd394fa751e2aeb7d8632800a49e0d015.zip |
Speed up the filtering operation by 1000 by using grep on the spamdb call.
Diffstat (limited to 'packages/spamd_db.php')
-rw-r--r-- | packages/spamd_db.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php index 22cdf786..82c8425b 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -184,7 +184,10 @@ if (typeof getURL == 'undefined') { <td class="list"></td> </tr> <?php - $pkgdb = split("\n", `/usr/local/sbin/spamdb`); + if($filter) + $pkgdb = split("\n", `/usr/local/sbin/spamdb | grep {$filter}`); + else + $pkgdb = split("\n", `/usr/local/sbin/spamdb`); $rows = 0; $lastseenip = ""; $srcip = "|"; |