From 13a35bdeef5951587933be3dc25d8eec2fc1f3b4 Mon Sep 17 00:00:00 2001 From: tokul Date: Thu, 13 Jul 2006 10:00:35 +0000 Subject: [PATCH] removed service type option - spamcop uses same form for free and paying reporters. web based reporting form will use members.spamcop.net address (#1519673). www.spamcop.net form is broken, if user is not logged into spamcop. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11391 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/spamcop/options.php | 32 -------------------------------- plugins/spamcop/spamcop.php | 13 ++++++------- 2 files changed, 6 insertions(+), 39 deletions(-) diff --git a/plugins/spamcop/options.php b/plugins/spamcop/options.php index 2beff652..aba95c89 100755 --- a/plugins/spamcop/options.php +++ b/plugins/spamcop/options.php @@ -26,7 +26,6 @@ displayPageHeader($color, 'None'); /* globals */ sqgetGlobalVar('action', $action); sqgetGlobalVar('meth', $meth); -sqgetGlobalVar('type', $type); sqgetGlobalVar('ID' , $ID); sqgetGlobalVar('username', $username, SQ_SESSION); @@ -58,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); @@ -143,32 +137,6 @@ spamcop_load_function(); ?> - - - -
- - ' . - '\n"; - ?> -
- " . diff --git a/plugins/spamcop/spamcop.php b/plugins/spamcop/spamcop.php index 96ede3aa..f27e8b6e 100644 --- a/plugins/spamcop/spamcop.php +++ b/plugins/spamcop/spamcop.php @@ -14,7 +14,10 @@ * Include the SquirrelMail initialization file. */ require('../../include/init.php'); - +/* IMAP functions depend on date and mime */ +include_once(SM_PATH . 'functions/date.php'); +include_once(SM_PATH . 'functions/mime.php'); +/* IMAP functions */ include_once(SM_PATH . 'functions/imap_general.php'); include_once(SM_PATH . 'functions/imap_messages.php'); /* plugin functions */ @@ -148,11 +151,8 @@ echo "

"; $Warning = "\n[truncated by SpamCop]\n"; $spam_message = substr($spam_message, 0, 50000 - strlen($Warning)) . $Warning; } - if ($spamcop_type=='member') { - $action_url="http://members.spamcop.net/sc"; - } else { - $action_url="http://www.spamcop.net/sc"; - } + $action_url="http://members.spamcop.net/sc"; + if (isset($js_web) && $js_web) { echo "
\n"; @@ -162,7 +162,6 @@ echo "

"; } ?> - \n"; -- 2.25.1