X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=58dfb7aed2ab81a028677353535eb24a47e4bde7;hb=a6d3eff675f7ace3d69f6d9788489ca930333315;hp=a46815694fc5a4a350262ade375faf155f789513;hpb=050722c4a141bfda4a2eae435ec290c6b793aae6;p=squirrelmail.git diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index a4681569..58dfb7ae 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,78 +1,88 @@
' . _("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); +displayPageHeader($color, $mailbox); +$fieldsdescr = listcommands_fieldsdescr(); 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."); - 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."); - break; -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."); + 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."); + break; + 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."); + break; + default: + error_box(sprintf(_("Unknown action: %s"),htmlspecialchars($action)), $color); + exit; } -printf( $out_string, htmlspecialchars($send_to) ); +echo html_tag('p', '', 'left' ) . + html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" . + html_tag( 'tr', + html_tag( 'th', _("Mailinglist") . ': ' . $fieldsdescr[$action], '', $color[9] ) + ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'left' ); -echo ' |