diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-07 22:24:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-07 22:24:35 +0000 |
commit | 0ee508060fd35555416f1f69f6e8a302955949dd (patch) | |
tree | 116599493ee0bc8ccfcc56ed167bf959cfced6cb /packages/spamd_db.php | |
parent | c88c9381fe7ebd8663c5b9d629b54205d3b62829 (diff) | |
download | pfsense-packages-0ee508060fd35555416f1f69f6e8a302955949dd.tar.gz pfsense-packages-0ee508060fd35555416f1f69f6e8a302955949dd.tar.bz2 pfsense-packages-0ee508060fd35555416f1f69f6e8a302955949dd.zip |
Add whitelist and blacklist GET functions used by new VB Spam button thingie.
Diffstat (limited to 'packages/spamd_db.php')
-rw-r--r-- | packages/spamd_db.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php index a1c7ae4d..6ad03c5d 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -74,6 +74,29 @@ if($_POST['spamtrapemail'] <> "") { $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"); |