X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=9db99ae3e7567a60df463cdcdc60fc472b15579b;hp=5e6191212632f8cb92fb2e6e669c955d6c891405;hb=a15b73a49b070358cf1e8ec699911df67e58ef9e;hpb=c435f076fe6b5b58e09ae19a8e216f37b069d802
diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php
index 5e619121..9db99ae3 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')
-. '
'
-. '