X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=a54995a43309211613232327e9d7bec4f5c51ea5;hb=0262a52cfae6c0239596e11f36e0a2254d51faf3;hp=4af179fb4458f2bb6545971c5c3ae75030cda68d;hpb=1d80c108a1d741b7dcb562ea1cf6d2214322b192;p=squirrelmail.git diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index 4af179fb..a54995a4 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,26 +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:") . ' '; - -if (count($idents) > 1) { - echo '' . "\n" ; -} else { - echo htmlspecialchars('"'.$idents[0]['full_name'].'" <'.$idents[0]['email_address'].'>'); -} +$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); -echo '
' -. '' -. '' -. '' -. '' -. '

' -. '

'; -noframes_bottom(); +$oTemplate->display('plugins/listcommands/mailout.tpl'); +$oTemplate->display('footer.tpl'); -?> \ No newline at end of file