X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fspamcop%2Fspamcop.php;h=8324071a3042c2d7e6c758177ed28e31132e3be5;hp=15a23fc27d333c30bbd02ac53cf1b289b6f0bba7;hb=63389330a0372fd52619f6efe7e01db155995ed1;hpb=da297dd0b801238dc73abfe09d78eeef11ba4ce9 diff --git a/plugins/spamcop/spamcop.php b/plugins/spamcop/spamcop.php index 15a23fc2..8324071a 100644 --- a/plugins/spamcop/spamcop.php +++ b/plugins/spamcop/spamcop.php @@ -1,32 +1,34 @@ \n"; + error_box(_("Plugin is disabled.")); + // display footer (closes html tags) and stop script execution + $oTemplate->display('footer.tpl'); exit(); } - $imap_stream = sqimap_login($username, $key, $imapServerAddress, - $imapPort, 0); + $imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); sqimap_mailbox_select($imap_stream, $mailbox); if ($spamcop_method == 'quick_email' || @@ -89,7 +91,7 @@ if (! is_plugin_enabled('spamcop')) { $message = sqimap_get_message($imap_stream, $passed_id, $mailbox); - $composeMessage = getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, + $composeMessage = spamcop_getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, $passed_ent_id, $imap_stream); $compose_messages[$session] = $composeMessage; @@ -117,7 +119,7 @@ echo "

"; echo '
'; echo '\n"; } else { - ?> + ?> "; $report_email = 'submit.' . $spamcop_id . '@spam.spamcop.net'; else $report_email = 'quick.' . $spamcop_id . '@spam.spamcop.net'; - $form_action = SM_PATH . 'src/compose.php'; + $form_action = sqm_baseuri() . 'src/compose.php'; ?> + @@ -141,7 +144,7 @@ echo "

"; \n"; + echo '\n"; } else { $spam_message = mime_fetch_body ($imap_stream, $passed_id, $passed_ent_id, 50000); @@ -149,11 +152,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"; @@ -163,7 +163,6 @@ echo "

"; } ?> - \n"; @@ -173,4 +172,4 @@ echo "

"; - \ No newline at end of file +