6 * @copyright 1999-2017 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
);
29 sqgetGlobalVar('identity', $identity, SQ_GET
);
31 displayPageHeader($color, $mailbox);
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"),sm_encode_html_special_chars($action)));
45 // display footer (closes html tags) and stop script execution
46 $oTemplate->display('footer.tpl');
50 $out_string = sprintf($out_string, '"' . sm_encode_html_special_chars($send_to) . '"');
51 $idents = get_identities();
52 $fieldsdescr = listcommands_fieldsdescr();
53 $fielddescr = $fieldsdescr[$action];
55 $oTemplate->assign('out_string', $out_string);
56 $oTemplate->assign('fielddescr', $fielddescr);
57 $oTemplate->assign('send_to', $send_to);
58 $oTemplate->assign('subject', $subject);
59 $oTemplate->assign('body', $body);
60 $oTemplate->assign('mailbox', $mailbox);
61 $oTemplate->assign('idents', $idents);
62 $oTemplate->assign('identity', $identity);
64 $oTemplate->display('plugins/listcommands/mailout.tpl');
65 $oTemplate->display('footer.tpl');