X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=ecba67dc6f179d961c87b8484eed671fc9209216;hp=a46815694fc5a4a350262ade375faf155f789513;hb=75b7d0427336801badc83fecdd4b25da55c6bb81;hpb=050722c4a141bfda4a2eae435ec290c6b793aae6 diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index a4681569..ecba67dc 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,78 +1,64 @@
' . _("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); 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))); + // display footer (closes html tags) and stop script execution + $oTemplate->display('footer.tpl'); + exit; } -printf( $out_string, htmlspecialchars($send_to) ); - -echo ' |