Message details seems to work without chdir now.
[squirrelmail.git] / plugins / message_details / message_details_bottom.php
index f70ea3fdeb0e7472e6d06f28add2ce8f836443a2..2c2eab8b7e6fe0e0b471b2371949a92f85c0de8b 100644 (file)
@@ -1,23 +1,24 @@
 <?php
 
 /** Message Source  
-*
-* Plugin to view the RFC822 raw message output and the bodystructure of a message
-*
-* Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
-* Licensed under the GNU GPL. For full terms see the file COPYING.
-* 
-* $Id$
-**/
+ *
+ * Plugin to view the RFC822 raw message output and the bodystructure of a message
+ *
+ * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ 
+ * $Id$
+ */
 
+#chdir ('..');
+define('SM_PATH','../../');
 
-//require_once('./message_viewentity.php');
-chdir('..');
-require_once('../functions/imap.php');
-require_once('../functions/mime.php');
-require_once('../config/config.php');
-require_once('../src/validate.php');
-require_once('../src/load_prefs.php');
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'functions/mime.php');
+require_once(SM_PATH . 'config/config.php');
+require_once(SM_PATH . 'functions/prefs.php');
 
 global $color, $uid_support;