Add ability to show login error from the IMAP server instead of traditional "Unknown...
[squirrelmail.git] / plugins / message_details / message_details_top.php
CommitLineData
bbdea028 1<?php
4b4abf93 2
86c62251 3/**
91e0dccc 4 * Message Details plugin - top frame with buttons
8d6a115b 5 *
6 * Plugin to view the RFC822 raw message output and the bodystructure of a message
7 *
86c62251 8 * @author Marc Groot Koerkamp
30460a05 9 * @copyright 2002 Marc Groot Koerkamp, The Netherlands
701e7bee 10 * @copyright 2002-2014 The SquirrelMail Project Team
86c62251 11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id$
ea5f4b8e 13 * @package plugins
14 * @subpackage message_details
8d6a115b 15 */
bbdea028 16
202bcbcc 17/**
18 * Include the SquirrelMail initialization file.
19 */
20require('../../include/init.php');
21require(SM_PATH . 'functions/forms.php');
bbdea028 22
3720bcfc 23displayHtmlHeader( _("Message Details"),
2c92ea9d 24 "<script type=\"text/javascript\">\n".
bbdea028 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
51bbe8fa 33sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT);
fab8e10c 34if (!sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET))
35 $passed_ent_id = 0;
f360843c 36sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
bbdea028 37
38echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
f265009a 39 '<div style="text-align: center;">' .
d8a8fe9f 40 addForm(SM_PATH . 'src/download.php', 'GET').
41 addHidden('mailbox', $mailbox).
42 addHidden('passed_id', $passed_id).
fab8e10c 43 addHidden('ent_id', $passed_ent_id).
d8a8fe9f 44 addHidden('absolute_dl', 'true').
e2faa504 45 (checkForJavascript() ?
c435f076 46 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
4d7e2270 47 '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;' :'').
d8a8fe9f 48 addSubmit(_("Save Message")).
f265009a 49 '</form></div>'.
bbdea028 50 '</body>'.
51 "</html>\n";