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