X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Foptions.php;h=0d9784858719bfc6eca461411e6458ac0a437365;hp=a250aedd63aae054bed487c3aec2a07e81986973;hb=30460a05016c7e066ad7b28df7788539e4054a99;hpb=9c6554164eb84c11c3f1ef78183f86fd0d7646a9 diff --git a/plugins/filters/options.php b/plugins/filters/options.php index a250aedd..0d978485 100644 --- a/plugins/filters/options.php +++ b/plugins/filters/options.php @@ -1,52 +1,26 @@
'._("Saved Scan type")."
\n"; + echo '
'._("Saved Scan type")."
\n"; } $filters = load_filters(); @@ -117,15 +91,14 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', - '
' . _("Options") . ' - ' . _("Message Filtering") . '
' , + '
' . _("Options") . ' - ' . _("Message Filtering") . '
' , 'left', $color[0] ) ), 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"' ) . '
'. - '
'. - html_tag( 'table', '', '', '', 'border="0" cellpadding="2" cellspacing="0"' ) . + html_tag( 'table', '', 'center', '', 'border="0" cellpadding="2" cellspacing="0"' ) . html_tag( 'tr' ) . html_tag( 'th', _("What to Scan:"), 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . @@ -144,7 +117,6 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { ''. html_tag( 'td', '', 'left' ) . ''. - '
'. '
'. html_tag( 'div', '[' . _("New") . @@ -153,7 +125,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { if (isset($action) && ($action == 'add' || $action == 'edit')) { - $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); + $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list($imapConnection); for ($a = 0, $cnt = count($boxes); $a < $cnt; $a++) { @@ -191,6 +163,12 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { $sel = (($L && $filters[$theid]['where'] == 'Subject')?' selected="selected"':''); echo "'; + $sel = (($L && $filters[$theid]['where'] == 'Message Body')?' selected="selected"':''); + echo "'; + + $sel = (($L && $filters[$theid]['where'] == 'Header and Body')?' selected="selected"':''); + echo "'; + $sel = (($L && $filters[$theid]['where'] == 'Header')?' selected="selected"':''); echo "'; @@ -202,7 +180,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { html_tag( 'td', '', 'left' ) . ''. ''. @@ -216,8 +194,8 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { if ( isset($filters[$theid]['folder']) ) $selected = array(strtolower($filters[$theid]['folder'])); echo sqimap_mailbox_option_list(0, $selected, 0, $boxes); - echo ''. - ''. + echo ''. + ''. ''. ''. ''. @@ -228,6 +206,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { } +if (count($filters)) { echo html_tag( 'table', '', 'center', '', 'border="0" cellpadding="3" cellspacing="0"' ); for ($i=0, $num = count($filters); $i < $num; $i++) { @@ -264,15 +243,15 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { printf( _("If %s contains %s then move to %s"), ''.$filters[$i]['where'].'', ''.$filters[$i]['what'].'', - ''.imap_utf7_decode_local($fdr).''); + ''.htmlspecialchars(imap_utf7_decode_local($fdr)).''); echo ''; } - echo ''. - html_tag( 'table', + echo ''; +} + echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', ' ', 'left' ) ) , 'center', '', 'width="80%" border="0" cellpadding="2" cellspacing="0"' ); echo ''; -?> \ No newline at end of file