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$ |
11 | */ |
bbdea028 |
12 | |
5c325683 |
13 | chdir ('..'); |
14 | define('SM_PATH','../'); |
89252d71 |
15 | |
16 | /* SquirrelMail required files. */ |
17 | require_once(SM_PATH . 'include/validate.php'); |
18 | require_once(SM_PATH . 'functions/strings.php'); |
19 | require_once(SM_PATH . 'config/config.php'); |
bbdea028 |
20 | |
bbdea028 |
21 | displayHtmlHeader( _("Message details"), |
22 | "<script language=\"javascript\">\n". |
23 | "<!--\n". |
24 | "function printPopup() {\n". |
25 | "parent.frames[1].focus();\n". |
26 | "parent.frames[1].print();\n". |
27 | "}\n". |
28 | "-->\n". |
29 | "</script>\n", FALSE ); |
30 | |
31 | |
32 | echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" . |
33 | '<center><b>'. |
34 | '<FORM name=rfc822 action="message_details_download.php?savemessage=1&passed_id='."$passed_id".'" METHOD=POST>' . |
35 | '<input type="button" value="' . _("Print") . '" onClick="printPopup()">   '. |
36 | '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">  '. |
37 | '<input type="submit" value="' . _("Save Message") . '"> '. |
38 | '<input type="hidden" name="mailbox" value="'. "$mailbox" . '"> ' . |
39 | '</form>'. |
40 | '</b>'. |
41 | '</body>'. |
42 | "</html>\n"; |
8d6a115b |
43 | ?> |