X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fspamcop%2Foptions.php;h=111903ffaa0e2e62de79492155223c21a601c238;hp=8c4c1e0e070cd2cb52efc8ed6662475fb5389240;hb=9a422982f7133d981fe505f468b1f8c5aca44720;hpb=a75e70b1b5fb3a111e84cf658cc6937a8e97dc2c diff --git a/plugins/spamcop/options.php b/plugins/spamcop/options.php index 8c4c1e0e..111903ff 100755 --- a/plugins/spamcop/options.php +++ b/plugins/spamcop/options.php @@ -15,6 +15,11 @@ define('SM_PATH','../../'); require_once(SM_PATH . 'include/validate.php'); +/** + * Internal spamcop plugin function. + * + * It is used to display similar action links. + */ function spamcop_enable_disable($option,$disable_action,$enable_action) { if ($option) { $ret= _("Enabled") . "(" . _("Disable it") . ")\n"; @@ -29,6 +34,7 @@ displayPageHeader($color, 'None'); /* globals */ sqgetGlobalVar('action', $action); sqgetGlobalVar('meth', $meth); +sqgetGlobalVar('type', $type); sqgetGlobalVar('ID' , $ID); sqgetGlobalVar('username', $username, SQ_SESSION); @@ -54,6 +60,11 @@ switch ($action) { setPref($data_dir, $username, 'spamcop_method', $meth); } break; + case 'type': + if (isset($type)) { + setPref($data_dir, $username, 'spamcop_type', $type); + } + break; case 'save_id': if (isset($ID)) { $ID = trim($ID); @@ -122,6 +133,30 @@ spamcop_load(); "> + + +
+ + + + "> +
+ " . @@ -166,7 +201,11 @@ echo _("When you press the button on the confirmation page, this will pop open a echo "

\n"; echo "

"; -echo _("The SpamCop service will display information as it finds it, so scroll down until you see a form button. It might pause a little while it is looking up information, so be a little patient. Read what it says, and submit the spam. Close the browser window. Press Cancel or click on the appropriate mail folder to see messages and/or delete the spam."); +echo _("The SpamCop service will display information as it finds it, so scroll down until you see a form button. It might pause a little while it is looking up information, so be a little patient. Read what it says, and submit the spam. Close the browser window. Press Cancel or click on the appropriate mail folder to see messages and/or delete the spam."); +echo "

\n"; + +echo "

". _("Spamcop Service Type") . "
\n"; +echo _("Service type option allows selecting which spamcop services you are using. Member services use different web reporting forms and does not display nags. You can purchase these services, if you want to support SpamCop."); echo "

\n"; echo "

";