if I don't do a chdir('..') required files in required files failed to
[squirrelmail.git] / plugins / message_details / message_details_top.php
index 8e97c09c1586281496a895efd9a5bd38c3bdd952..c02560eb296ed3df6f660e359cd80c029c85d2cd 100644 (file)
@@ -1,19 +1,22 @@
 <?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('..');
-    require_once ('../src/validate.php');
-    require_once ('../functions/strings.php');
-    require_once ('../config/config.php');
+chdir ('..');
+define('SM_PATH','../');
 
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'config/config.php');
 
 displayHtmlHeader( _("Message details"),
              "<script language=\"javascript\">\n".
@@ -37,4 +40,4 @@ echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"
      '</b>'.
      '</body>'.
      "</html>\n";
-?>
\ No newline at end of file
+?>