diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-29 04:04:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-29 04:04:26 +0000 |
commit | 3691ff142972a87123f336162dd810226ab93235 (patch) | |
tree | 0e153b2839aa2af830b236c230ee2568aee65bbd | |
parent | 9d4b6c6146deb6dc580f172ab04390beabb2e8ee (diff) | |
download | pfsense-packages-3691ff142972a87123f336162dd810226ab93235.tar.gz pfsense-packages-3691ff142972a87123f336162dd810226ab93235.tar.bz2 pfsense-packages-3691ff142972a87123f336162dd810226ab93235.zip |
Alert user when an error occurs
-rw-r--r-- | packages/spamd_db.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php index cbe26978..3a409e2b 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -44,13 +44,13 @@ if($_GET['action'] or $_POST['action']) { $srcip = $_POST['srcip']; $pkgdb = split("\n", `/usr/local/sbin/spamdb`); if($action == "whitelist") { - mwexec("/usr/local/sbin/spamdb -a {$srcip}"); + exec("/usr/local/sbin/spamdb -a {$srcip}"); } else if($action == "delete") { - mwexec("/usr/local/sbin/spamdb -d {$srcip}"); + exec("/usr/local/sbin/spamdb -d {$srcip}"); } else if($action == "spamtrap") { - mwexec("/usr/local/sbin/spamdb -a {$srcip} -T"); + exec("/usr/local/sbin/spamdb -a {$srcip} -T"); } else if($action == "trapped") { - mwexec("/usr/local/sbin/spamdb -a {$srcip} -t"); + exec("/usr/local/sbin/spamdb -a {$srcip} -t"); } mwexec("killall -HUP spamlogd"); exit; @@ -76,7 +76,9 @@ include("head.inc"); </script> <script language="javascript"> function outputrule(req) { - //alert(req.content); + if(req.content <> '') { + alert(req.content); + } } if (typeof getURL == 'undefined') { getURL = function(url, callback) { |