fix for new SMPATH
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 16:43:35 +0000 (16:43 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 16:43:35 +0000 (16:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3595 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/message_details/message_details_bottom.php
plugins/message_details/message_details_main.php
plugins/message_details/message_details_top.php

index f70ea3fdeb0e7472e6d06f28add2ce8f836443a2..e028ee2121ae6d9c18a18b8180c5be7bbdc982f3 100644 (file)
 * $Id$
 **/
 
-
-//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');
+define('SM_PATH','../');
+
+/* 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;
 
index 1e262efc696506a2cedf50f116c2e5baa0271a30..9e8b07e47fa0609c766caf3c51da0dd6931d29e8 100644 (file)
@@ -8,11 +8,15 @@
 * 
 * $Id$
 **/
+/* Path for SquirrelMail required files. */
 
-chdir ('..');
-require_once('../src/validate.php');
-require_once('../functions/page_header.php');
-require_once('../functions/strings.php');
+chdir('..');
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/page_header.php');
+require_once(SM_PATH . 'functions/strings.php');
 
 displayHtmlHeader( _("Message details"), '', FALSE );
 
index 8e97c09c1586281496a895efd9a5bd38c3bdd952..0054746930355989d401351a35ad4f6489808015 100644 (file)
@@ -9,10 +9,13 @@
 * $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"),