X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Fspamoptions.php;h=352d98360466b9cc478f19199ae9c6f0cd285a87;hb=785fda95d72ef1fcd6a7e0198ff708e477e88be3;hp=d4b2256368c902d1589f74412a91608e879524b8;hpb=6d440be5164b305b57c042815c96dabd353a7188;p=squirrelmail.git diff --git a/plugins/filters/spamoptions.php b/plugins/filters/spamoptions.php index d4b22563..352d9836 100644 --- a/plugins/filters/spamoptions.php +++ b/plugins/filters/spamoptions.php @@ -1,73 +1,49 @@ $Value) { @@ -101,7 +77,7 @@ if ($SpamFilters_YourHop == ' ') { if (isset($action) && $action == 'spam') { - $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); + $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list($imapConnection); sqimap_logout($imapConnection); $numboxes = count($boxes); @@ -115,10 +91,10 @@ if (isset($action) && $action == 'spam') { } echo '
'. - '
'. + '
'. html_tag( 'table', '', '', '', 'width="85%" border="0" cellpadding="2" cellspacing="0"' ) . html_tag( 'tr' ) . - html_tag( 'th', _("Move spam to:"), 'right', '', 'nowrap' ) . + html_tag( 'th', _("Move spam to:"), 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . ''. ''. '' . ''. @@ -163,13 +139,13 @@ if (isset($action) && $action == 'spam') { foreach ($spam_filters as $Key => $Value) { echo html_tag( 'tr' ) . - html_tag( 'th', $Key, 'right', '', 'nowrap' ) ."\n" . + html_tag( 'th', $Key, 'right', '', 'style="white-space: nowrap;"' ) ."\n" . html_tag( 'td' ) . ' - '; if ($spam_filters[$Key]['link']) { @@ -192,16 +168,16 @@ if (isset($action) && $action == 'spam') { html_tag( 'td', '', 'center', '', 'colspan="2"' ) ) . "\n" . ''. - '
'. + ''. '
'; } else { // action is not set or action is not spam echo html_tag( 'p', '', 'center' ) . '[' . _("Edit") . ']' . - ' - [' . _("Done") . ']

'; - printf( _("Spam is sent to %s."), ($filters_spam_folder?''.imap_utf7_decode_local($filters_spam_folder).'':'['._("not set yet").']' ) ); + ' - [' . _("Done") . ']

'; + printf( _("Spam is sent to %s."), ($filters_spam_folder?''.sm_encode_html_special_chars(imap_utf7_decode_local($filters_spam_folder)).'':'['._("not set yet").']' ) ); echo '
'; - printf( _("Spam scan is limited to %s."), '' . ( ($filters_spam_scan == 'new')?_("Unread messages only"):_("All Messages") ) . '' ); + printf( _("Spam scan is limited to %s."), '' . ( ($filters_spam_scan == 'new')?_("Unread messages only"):_("All messages") ) . '' ); echo '

'. '\n"; @@ -217,7 +193,7 @@ if (isset($action) && $action == 'spam') { echo _("OFF"); } - echo '' . + echo '' . html_tag( 'td', ' - ', 'left' ) . html_tag( 'td', '', 'left' );