projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed broken RFC1918 reference in contrib/.htaccess and doc/.htaccess (#2798839).
[squirrelmail.git]
/
plugins
/
message_details
/
message_details_top.php
diff --git
a/plugins/message_details/message_details_top.php
b/plugins/message_details/message_details_top.php
index 99b95a40ff3323e4efea2921768b3d2068a3c58b..ec2bfb30e9c7fb5c35e31d11fdf706bee88d9761 100644
(file)
--- a/
plugins/message_details/message_details_top.php
+++ b/
plugins/message_details/message_details_top.php
@@
-1,27
+1,27
@@
<?php
<?php
+
/**
* Message Details plugin - top frame with buttons
*
* Plugin to view the RFC822 raw message output and the bodystructure of a message
*
* @author Marc Groot Koerkamp
/**
* Message Details plugin - top frame with buttons
*
* Plugin to view the RFC822 raw message output and the bodystructure of a message
*
* @author Marc Groot Koerkamp
- * @copyright
Copyright
© 2002 Marc Groot Koerkamp, The Netherlands
- * @copyright
Copyright © 2004-2005
The SquirrelMail Project Team
+ * @copyright © 2002 Marc Groot Koerkamp, The Netherlands
+ * @copyright
© 2002-2009
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage message_details
*/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage message_details
*/
-/** @ignore */
-define('SM_PATH','../../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/forms.php');
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
+require(SM_PATH . 'functions/forms.php');
displayHtmlHeader( _("Message Details"),
displayHtmlHeader( _("Message Details"),
- "<script
language=\"javascript\"
type=\"text/javascript\">\n".
+ "<script type=\"text/javascript\">\n".
"<!--\n".
"function printPopup() {\n".
"parent.frames[1].focus();\n".
"<!--\n".
"function printPopup() {\n".
"parent.frames[1].focus();\n".
@@
-30,20
+30,22
@@
displayHtmlHeader( _("Message Details"),
"-->\n".
"</script>\n", FALSE );
"-->\n".
"</script>\n", FALSE );
-sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
+sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT);
+if (!sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET))
+ $passed_ent_id = 0;
sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
- '<
center
>' .
+ '<
div style="text-align: center;"
>' .
addForm(SM_PATH . 'src/download.php', 'GET').
addHidden('mailbox', $mailbox).
addHidden('passed_id', $passed_id).
addForm(SM_PATH . 'src/download.php', 'GET').
addHidden('mailbox', $mailbox).
addHidden('passed_id', $passed_id).
- addHidden('ent_id',
'0'
).
+ addHidden('ent_id',
$passed_ent_id
).
addHidden('absolute_dl', 'true').
addHidden('absolute_dl', 'true').
+ (checkForJavascript() ?
'<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
'<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
- '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" /> '.
+ '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" /> '
:'')
.
addSubmit(_("Save Message")).
addSubmit(_("Save Message")).
- '</form></
center
>'.
+ '</form></
div
>'.
'</body>'.
"</html>\n";
'</body>'.
"</html>\n";
-?>
\ No newline at end of file