aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_db.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-07 22:24:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-07 22:24:35 +0000
commit0ee508060fd35555416f1f69f6e8a302955949dd (patch)
tree116599493ee0bc8ccfcc56ed167bf959cfced6cb /packages/spamd_db.php
parentc88c9381fe7ebd8663c5b9d629b54205d3b62829 (diff)
downloadpfsense-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.php23
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");