X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=3ce2007cc9fd0aad973f8eeba6419bbce061525d;hb=c10d79aa3c0ae0cae02bf07d47c202183c5f7bb8;hp=e505465a8c2a02f6851fb6e8162af185f06c0104;hpb=15ac78fea238aa18aac22dca396055b742394f71;p=squirrelmail.git diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index e505465a..3ce2007c 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,23 +1,24 @@ display('footer.tpl'); + exit; } -printf( $out_string, htmlspecialchars($send_to) ); - -echo '
'; - - +$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 '
' -. '' -. '' -. '' -. '' -. '

' -. '

'; -?>