X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=c39f1d9d3cbdd155ce9d446ea083a2f0de113071;hp=a46815694fc5a4a350262ade375faf155f789513;hb=9eb3fcb302b8e0363760bee586f1c43e7050b365;hpb=050722c4a141bfda4a2eae435ec290c6b793aae6 diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index a4681569..c39f1d9d 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,78 +1,82 @@
' . _("Mailinglist") . ' ' . _($action) . - " |
---|
"; +/* get globals */ +sqgetGlobalVar('mailbox', $mailbox, SQ_GET); +sqgetGlobalVar('send_to', $send_to, SQ_GET); +sqgetGlobalVar('subject', $subject, SQ_GET); +sqgetGlobalVar('body', $body, SQ_GET); +sqgetGlobalVar('action', $action, SQ_GET); +echo html_tag('p', '', 'left' ) . +html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" . + html_tag( 'tr', + html_tag( 'th', _("Mailinglist") . ' ' . _($action), '', $color[9] ) + ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'left' ); switch ( $action ) { -case 'Help': - $out_string .= _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below."); +case 'help': + $out_string = _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below."); break; -case 'Subscribe': - $out_string .= _("This will send a message to %s requesting that you will be subscribed to this list. You will be subscribed with the address below."); +case 'subscribe': + $out_string = _("This will send a message to %s requesting that you will be subscribed to this list. You will be subscribed with the address below."); break; -case 'Unsubscribe': +case 'unsubscribe': $out_string = _("This will send a message to %s requesting that you will be unsubscribed from this list. It will try to unsubscribe the adress below."); } printf( $out_string, htmlspecialchars($send_to) ); -echo ' |