From: Daniel Nauck <d...@mono-project.de> * add support for loading * add support for saving * populate template with optOutClamAV value --- webui/cgi-bin/dspam.cgi | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/webui/cgi-bin/dspam.cgi b/webui/cgi-bin/dspam.cgi index 3d2a3c3..0724bcd 100755 --- a/webui/cgi-bin/dspam.cgi +++ b/webui/cgi-bin/dspam.cgi @@ -643,6 +643,10 @@ sub DisplayPreferences { if ($FORM{'submit'} ne "") { + if ($FORM{'optOutClamAV'} ne "on") { + $FORM{'optOutClamAV'} = "off"; + } + if ($FORM{'enableBNR'} ne "on") { $FORM{'enableBNR'} = "off"; } @@ -687,6 +691,9 @@ sub DisplayPreferences { " statisticalSedation " . quotemeta($FORM{'statisticalSedation'}) . " > /dev/null"); system("$CONFIG{'DSPAM_BIN'}/dspam_admin ch pref ".quotemeta($CURRENT_USER). + " optOutClamAV " + . quotemeta($FORM{'optOutClamAV'}) . "> /dev/null"); + system("$CONFIG{'DSPAM_BIN'}/dspam_admin ch pref ".quotemeta($CURRENT_USER). " enableBNR " . quotemeta($FORM{'enableBNR'}) . "> /dev/null"); system("$CONFIG{'DSPAM_BIN'}/dspam_admin ch pref ".quotemeta($CURRENT_USER). @@ -713,6 +720,7 @@ trainingMode=$FORM{'trainingMode'} spamAction=$FORM{'spamAction'} spamSubject=$FORM{'spamSubject'} statisticalSedation=$FORM{'statisticalSedation'} +optOutClamAV=$FORM{'optOutClamAV'} enableBNR=$FORM{'enableBNR'} optIn=$FORM{'optIn'} optOut=$FORM{'optOut'} @@ -739,6 +747,9 @@ _END if ($PREFS{'optOut'} eq "on") { $DATA{'C_OPTOUT'} = "CHECKED"; } + if ($PREFS{"optOutClamAV"} eq "on") { + $DATA{"C_CLAMAV"} = "CHECKED"; + } if ($PREFS{"enableBNR"} eq "on") { $DATA{"C_BNR"} = "CHECKED"; } -- 1.6.0.4 ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel