X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fmessage_details%2Fmessage_details_top.php;h=ec2bfb30e9c7fb5c35e31d11fdf706bee88d9761;hb=de3178dc1a5117827e254544c6f164dba653ad83;hp=67d4f1a33af6acc71bf7c94ef733617a3fe6b67e;hpb=f265009a3bf872cf6c9d9aaefe7949e1688555a0;p=squirrelmail.git diff --git a/plugins/message_details/message_details_top.php b/plugins/message_details/message_details_top.php index 67d4f1a3..ec2bfb30 100644 --- a/plugins/message_details/message_details_top.php +++ b/plugins/message_details/message_details_top.php @@ -7,22 +7,21 @@ * * @author Marc Groot Koerkamp * @copyright © 2002 Marc Groot Koerkamp, The Netherlands - * @copyright © 2002-2006 The SquirrelMail Project Team + * @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 */ -/** @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"), - "\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 "\n" . @@ -39,12 +40,12 @@ echo "  '. - '  '. + '  ' :''). addSubmit(_("Save Message")). ''. ''. "\n"; -?> \ No newline at end of file