X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=ecba67dc6f179d961c87b8484eed671fc9209216;hp=db305b5c0435505fb972847e235add6361a77230;hb=8b7c37ed0449e5040929843fe2073c76be20b835;hpb=d8a8fe9f2dc7c2200cd0aff33ef1ebf155d67a5a diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index db305b5c..ecba67dc 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,27 +1,24 @@ display('footer.tpl'); + exit; } -printf( $out_string, htmlspecialchars($send_to) ); - -echo addForm('../../src/compose.php', 'POST'); - - +$out_string = sprintf($out_string, '"' . htmlspecialchars($send_to) . '"'); $idents = get_identities(); +$fieldsdescr = listcommands_fieldsdescr(); +$fielddescr = $fieldsdescr[$action]; -echo html_tag('p', '', 'center' ) . _("From:") . ' '; +$oTemplate->assign('out_string', $out_string); +$oTemplate->assign('fielddescr', $fielddescr); +$oTemplate->assign('send_to', $send_to); +$oTemplate->assign('subject', $subject); +$oTemplate->assign('body', $body); +$oTemplate->assign('mailbox', $mailbox); +$oTemplate->assign('idents', $idents); -if (count($idents) > 1) { - echo '' . "\n" ; -} else { - echo htmlspecialchars('"'.$idents[0]['full_name'].'" <'.$idents[0]['email_address'].'>'); -} +$oTemplate->display('plugins/listcommands/mailout.tpl'); +$oTemplate->display('footer.tpl'); -echo '
' -. addHidden('send_to', $send_to) -. addHidden('subject', $subject) -. addHidden('body', $body) -. addHidden('mailbox', $mailbox) -. addSubmit(_("Send Mail"), 'send') -. '

' -. '

'; -?>