bbdea028 |
1 | <?php |
8d6a115b |
2 | |
bbdea028 |
3 | /** Message Source |
8d6a115b |
4 | * |
5 | * Plugin to view the RFC822 raw message output and the bodystructure of a message |
6 | * |
7 | * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands |
8 | * Licensed under the GNU GPL. For full terms see the file COPYING. |
9 | * |
10 | * $Id$ |
ea5f4b8e |
11 | * @package plugins |
12 | * @subpackage message_details |
8d6a115b |
13 | */ |
bbdea028 |
14 | |
ea5f4b8e |
15 | /** @ignore */ |
92219031 |
16 | define('SM_PATH','../../'); |
89252d71 |
17 | |
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'); |
bbdea028 |
22 | |
3720bcfc |
23 | displayHtmlHeader( _("Message Details"), |
bbdea028 |
24 | "<script language=\"javascript\">\n". |
25 | "<!--\n". |
26 | "function printPopup() {\n". |
27 | "parent.frames[1].focus();\n". |
28 | "parent.frames[1].print();\n". |
29 | "}\n". |
30 | "-->\n". |
31 | "</script>\n", FALSE ); |
32 | |
f360843c |
33 | sqgetGlobalVar('passed_id', $passed_id, SQ_GET); |
34 | sqgetGlobalVar('mailbox', $mailbox, SQ_GET); |
bbdea028 |
35 | |
36 | echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" . |
f360843c |
37 | '<center><b>' . |
38 | '<form action="' . SM_PATH . 'src/download.php" method="GET">' . |
39 | '<input type="button" value="' . _("Print") . '" onClick="printPopup()" /> '. |
40 | '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()" /> '. |
41 | '<input type="submit" value="' . _("Save Message") . '" /> '. |
42 | '<input type="hidden" name="mailbox" value="' . urlencode($mailbox) . '" />' . |
43 | '<input type="hidden" name="passed_id" value="' . urlencode($passed_id) . '" />' . |
44 | '<input type="hidden" name="ent_id" value="0" />' . |
45 | '<input type="hidden" name="absolute_dl" value="true" />' . |
bbdea028 |
46 | '</form>'. |
47 | '</b>'. |
48 | '</body>'. |
49 | "</html>\n"; |
1d80c108 |
50 | ?> |