6f608f26a590772a65841622d0fdbf588d3448e0
5 * Copyright (c) 1999-2002 The SquirrelMail Project Team
6 * Licensed under the GNU GPL. For full terms see the file COPYING.
12 include_once ('../src/validate.php');
13 include_once ('../functions/page_header.php');
14 include_once ('../src/load_prefs.php');
15 include_once('../functions/html.php');
17 displayPageHeader($color, $mailbox);
19 echo html_tag('p', '', 'left' ) .
20 html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" .
22 html_tag( 'th', _("Mailinglist") . ' ' . _($action), '', $color[9] )
25 html_tag( 'td', '', 'left' );
29 $out_string = _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below.");
32 $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.");
35 $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.");
38 printf( $out_string, htmlspecialchars($send_to) );
40 echo '<form method="post" action="../../src/compose.php">';
43 * Identity support (RFC 2369 sect. B.1.)
45 * I had to copy this from compose.php because there doesn't
46 * seem to exist a function to get the identities.
49 $defaultmail = htmlspecialchars(getPref($data_dir, $username, 'full_name'));
50 $em = getPref($data_dir, $username, 'email_address');
52 $defaultmail .= htmlspecialchars(' <' . $em . '>') . "\n";
54 echo html_tag('p', '', 'center' ) . _("From:") . ' ';
56 $idents = getPref($data_dir, $username, 'identities');
57 if ($idents != '' && $idents > 1) {
58 echo ' <select name="identity">' . "\n" .
59 '<option value="default">' . $defaultmail;
60 for ($i = 1; $i < $idents; $i ++
) {
61 echo '<option value="' . $i . '"';
62 if (isset($identity) && $identity == $i) {
65 echo '>' . htmlspecialchars(getPref($data_dir, $username,
67 $em = getPref($data_dir, $username, 'email_address' . $i);
69 echo htmlspecialchars(' <' . $em . '>') . "\n";
72 echo '</select>' . "\n" ;
79 . '<input type=hidden name="send_to" value="' . htmlspecialchars($send_to) . '">'
80 . '<input type=hidden name="subject" value="' . htmlspecialchars($subject) . '">'
81 . '<input type=hidden name="body" value="' . htmlspecialchars($body) . '">'
82 . '<input type=hidden name="mailbox" value="' . htmlspecialchars($mailbox) . '">'
83 . '<input type=submit name="send" value="' . _("Send Mail") . '"><BR><BR></CENTER>'
84 . '</form></TD></TR></TABLE></P></BODY></HTML>';