From 0ee508060fd35555416f1f69f6e8a302955949dd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 7 Feb 2006 22:24:35 +0000 Subject: Add whitelist and blacklist GET functions used by new VB Spam button thingie. --- packages/spamd_db.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'packages/spamd_db.php') 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"); -- cgit v1.2.3