X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fmessage_details%2Fmessage_details_main.php;h=7f2c59f439fbc4da22e1d32a6bc47ee505fa0ba0;hb=f34bb4e38938e9519e6eb7dd357f193828a0c37b;hp=6a628372c8314608b4df71803b7a7324df098b20;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git diff --git a/plugins/message_details/message_details_main.php b/plugins/message_details/message_details_main.php index 6a628372..7f2c59f4 100644 --- a/plugins/message_details/message_details_main.php +++ b/plugins/message_details/message_details_main.php @@ -7,7 +7,7 @@ * * @author Marc Groot Koerkamp * @copyright © 2002 Marc Groot Koerkamp, The Netherlands - * @copyright © 2002-2005 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 @@ -15,24 +15,24 @@ */ /** - * Path for SquirrelMail required files. - * @ignore + * Include the SquirrelMail initialization file. */ -define('SM_PATH','../../'); - -/* SquirrelMail required files. */ -require_once(SM_PATH . 'include/validate.php'); +require('../../include/init.php'); displayHtmlHeader( _("Message Details"), '', FALSE ); sqgetGlobalVar('mailbox', $mailbox, SQ_GET); -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; +//FIXME: Don't echo HTML directly - need to "templatize" this echo "\n"; -echo ''; -echo ''; +echo ''; +echo ''; echo ''."\n"."\n"; -?> \ No newline at end of file