dd9e5de180ee7a551e8ab7891cf0628cd5a41c17
6 * @copyright © 1999-2006 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @subpackage listcommands
13 * Path for SquirrelMail required files.
16 require('../../include/init.php');
18 /* SquirrelMail required files. */
19 require(SM_PATH
. 'functions/identity.php');
20 require(SM_PATH
. 'functions/forms.php');
21 require(SM_PATH
. 'plugins/listcommands/functions.php');
24 sqgetGlobalVar('mailbox', $mailbox, SQ_GET
);
25 sqgetGlobalVar('send_to', $send_to, SQ_GET
);
26 sqgetGlobalVar('subject', $subject, SQ_GET
);
27 sqgetGlobalVar('body', $body, SQ_GET
);
28 sqgetGlobalVar('action', $action, SQ_GET
);
30 displayPageHeader($color, $mailbox);
31 $fieldsdescr = listcommands_fieldsdescr();
35 $out_string = _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below.");
38 $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.");
41 $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.");
44 error_box(sprintf(_("Unknown action: %s"),htmlspecialchars($action)));
45 // display footer (closes html tags) and stop script execution
46 $oTemplate->display('footer.tpl');
50 echo html_tag('p', '', 'left' ) .
51 html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" .
53 html_tag( 'th', _("Mailinglist") . ': ' . $fieldsdescr[$action], '', $color[9] )
56 html_tag( 'td', '', 'left' );
58 printf($out_string, '"' . htmlspecialchars($send_to) . '"');
60 echo addForm(SM_PATH
. 'src/compose.php', 'post');
62 $idents = get_identities();
64 echo html_tag('p', '', 'center' ) . _("From:") . ' ';
66 if (count($idents) > 1) {
67 echo '<select name="identity">';
68 foreach($idents as $nr=>$data) {
69 echo '<option value="' . $nr . '">' .
71 $data['full_name'].' <'.
72 $data['email_address'] . ">\n");
74 echo '</select>' . "\n" ;
76 echo htmlspecialchars('"'.$idents[0]['full_name'].'" <'.$idents[0]['email_address'].'>');
80 addHidden('send_to', $send_to) .
81 addHidden('subject', $subject) .
82 addHidden('body', $body) .
83 addHidden('mailbox', $mailbox) .
84 addSubmit(_("Send Mail"), 'send');
87 </form
></td
></tr
></table
></p
></body
></html
>