Lets see if this prefs fix works for now. Will do DB stuff later, or
[squirrelmail.git] / plugins / message_details / message_details_top.php
CommitLineData
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
92219031 13define('SM_PATH','../../');
89252d71 14
15/* SquirrelMail required files. */
16require_once(SM_PATH . 'include/validate.php');
17require_once(SM_PATH . 'functions/strings.php');
18require_once(SM_PATH . 'config/config.php');
bbdea028 19
bbdea028 20displayHtmlHeader( _("Message details"),
21 "<script language=\"javascript\">\n".
22 "<!--\n".
23 "function printPopup() {\n".
24 "parent.frames[1].focus();\n".
25 "parent.frames[1].print();\n".
26 "}\n".
27 "-->\n".
28 "</script>\n", FALSE );
29
f360843c 30sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
31sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
bbdea028 32
33echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
f360843c 34 '<center><b>' .
35 '<form action="' . SM_PATH . 'src/download.php" method="GET">' .
36 '<input type="button" value="' . _("Print") . '" onClick="printPopup()" />&nbsp;&nbsp;'.
37 '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()" />&nbsp;&nbsp;'.
38 '<input type="submit" value="' . _("Save Message") . '" /> '.
39 '<input type="hidden" name="mailbox" value="' . urlencode($mailbox) . '" />' .
40 '<input type="hidden" name="passed_id" value="' . urlencode($passed_id) . '" />' .
41 '<input type="hidden" name="ent_id" value="0" />' .
42 '<input type="hidden" name="absolute_dl" value="true" />' .
bbdea028 43 '</form>'.
44 '</b>'.
45 '</body>'.
46 "</html>\n";
8d6a115b 47?>