5d08b20b78d992801783f71786dd500c136a5661
5 * Copyright (c) 1999-2003 The SquirrelMail Project Team
6 * Licensed under the GNU GPL. For full terms see the file COPYING.
10 * @subpackage listcommands
14 define('SM_PATH','../../');
16 /* SquirrelMail required files. */
17 require_once(SM_PATH
. 'include/validate.php');
18 include_once(SM_PATH
. 'functions/page_header.php');
19 include_once(SM_PATH
. 'include/load_prefs.php');
20 include_once(SM_PATH
. 'functions/html.php');
21 require_once(SM_PATH
. 'functions/identity.php');
23 displayPageHeader($color, $mailbox);
26 sqgetGlobalVar('mailbox', $mailbox, SQ_GET
);
27 sqgetGlobalVar('send_to', $send_to, SQ_GET
);
28 sqgetGlobalVar('subject', $subject, SQ_GET
);
29 sqgetGlobalVar('body', $body, SQ_GET
);
30 sqgetGlobalVar('action', $action, SQ_GET
);
32 echo html_tag('p', '', 'left' ) .
33 html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" .
35 html_tag( 'th', _("Mailinglist") . ' ' . _($action), '', $color[9] )
38 html_tag( 'td', '', 'left' );
42 $out_string = _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below.");
45 $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.");
48 $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.");
51 printf( $out_string, htmlspecialchars($send_to) );
53 echo '<form method="post" action="../../src/compose.php">';
56 $idents = get_identities();
58 echo html_tag('p', '', 'center' ) . _("From:") . ' ';
60 if (count($idents) > 1) {
61 echo '<select name="identity">';
62 foreach($idents as $nr=>$data) {
63 echo '<option value="' . $nr . '">' .
65 $data['full_name'].' <'.
66 $data['email_address'] . ">\n");
68 echo '</select>' . "\n" ;
70 echo htmlspecialchars('"'.$idents[0]['full_name'].'" <'.$idents[0]['email_address'].'>');
74 . '<input type="hidden" name="send_to" value="' . htmlspecialchars($send_to) . '">'
75 . '<input type="hidden" name="subject" value="' . htmlspecialchars($subject) . '">'
76 . '<input type="hidden" name="body" value="' . htmlspecialchars($body) . '">'
77 . '<input type="hidden" name="mailbox" value="' . htmlspecialchars($mailbox) . '">'
78 . '<input type="submit" name="send" value="' . _("Send Mail") . '"><br /><br /></center>'
79 . '</form></td></tr></table></p></body></html>';