X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fmessage_details%2Fmessage_details_top.php;h=9b8efd543091121a519fe33a396050e4f0a4489d;hp=bed4f6189508bcc567ec278bfcfc25e6ab51eabc;hb=51bbe8fab8731eb498cf0aecefd21f957aec6413;hpb=2c92ea9da4c11cac1ea3118a1e0fda6407e5d62b diff --git a/plugins/message_details/message_details_top.php b/plugins/message_details/message_details_top.php index bed4f618..9b8efd54 100644 --- a/plugins/message_details/message_details_top.php +++ b/plugins/message_details/message_details_top.php @@ -7,19 +7,18 @@ * * @author Marc Groot Koerkamp * @copyright © 2002 Marc Groot Koerkamp, The Netherlands - * @copyright © 2002-2006 The SquirrelMail Project Team + * @copyright © 2002-2007 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,13 @@ echo "  '. - '  '. + '  ' :''). addSubmit(_("Save Message")). ''. ''. "\n"; -?> \ No newline at end of file +?>