X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=3ce2007cc9fd0aad973f8eeba6419bbce061525d;hp=5d08b20b78d992801783f71786dd500c136a5661;hb=55e346263751f3100c780b2d3aee268b6fa3232d;hpb=ea5f4b8eaf805c4cc4e9533e87d057300a7fe666 diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index 5d08b20b..3ce2007c 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:") . ' '; +$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 '
' -. '' -. '' -. '' -. '' -. '

' -. '

'; -?>