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 f70ea3f..e028ee2 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 1e262ef..9e8b07e 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 8e97c09..0054746 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"),