X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fspamcop%2Foptions.php;h=f238c28efc1e3ebf2cf1f6d928f78bb8f4516612;hp=e4f2da2b0326ee7c7c5f9bd2a1e93f7fe973bf99;hb=55e346263751f3100c780b2d3aee268b6fa3232d;hpb=4b4abf93a9624311afef0c385023724ee46a2b60
diff --git a/plugins/spamcop/options.php b/plugins/spamcop/options.php
index e4f2da2b..f238c28e 100755
--- a/plugins/spamcop/options.php
+++ b/plugins/spamcop/options.php
@@ -3,21 +3,22 @@
/**
* options.php -- SpamCop options page
*
- * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @copyright 1999-2011 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage spamcop
*/
-/** @ignore */
-define('SM_PATH','../../');
-/* SquirrelMail functions */
-require_once(SM_PATH . 'include/validate.php');
+
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
/* plugin functions */
include_once(SM_PATH . 'plugins/spamcop/functions.php');
-displayPageHeader($color, 'None');
+displayPageHeader($color);
/** is spamcop plugin disabled */
// option changes do nothing, if read_body_header_right hook is not active.
@@ -25,7 +26,6 @@ displayPageHeader($color, 'None');
/* globals */
sqgetGlobalVar('action', $action);
sqgetGlobalVar('meth', $meth);
-sqgetGlobalVar('type', $type);
sqgetGlobalVar('ID' , $ID);
sqgetGlobalVar('username', $username, SQ_SESSION);
@@ -57,11 +57,6 @@ 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);
@@ -79,9 +74,9 @@ spamcop_load_function();
-
-
+
|
' . _("More information") . '
';
printf(_("For more information about SpamCop, it's services, spam in general, and many related topics, try reading through SpamCop's %sHelp and Feedback%s section."), '', '');
echo "