5 * Plugin to view the RFC822 raw message output and the bodystructure of a message
7 * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
8 * Licensed under the GNU GPL. For full terms see the file COPYING.
12 * @subpackage message_details
16 define('SM_PATH','../../');
18 /* SquirrelMail required files. */
19 require_once(SM_PATH
. 'include/validate.php');
20 require_once(SM_PATH
. 'functions/strings.php');
21 require_once(SM_PATH
. 'config/config.php');
22 require_once(SM_PATH
. 'functions/forms.php');
24 displayHtmlHeader( _("Message Details"),
25 "<script language=\"javascript\">\n".
27 "function printPopup() {\n".
28 "parent.frames[1].focus();\n".
29 "parent.frames[1].print();\n".
32 "</script>\n", FALSE );
34 sqgetGlobalVar('passed_id', $passed_id, SQ_GET
);
35 sqgetGlobalVar('mailbox', $mailbox, SQ_GET
);
37 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
39 addForm(SM_PATH
. 'src/download.php', 'GET').
40 addHidden('mailbox', $mailbox).
41 addHidden('passed_id', $passed_id).
42 addHidden('ent_id', '0').
43 addHidden('absolute_dl', 'true').
44 '<input type="button" value="' . _("Print") . '" onClick="printPopup()" /> '.
45 '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()" /> '.
46 addSubmit(_("Save Message")).