if I don't do a chdir('..') required files in required files failed to
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Sep 2002 12:29:50 +0000 (12:29 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Sep 2002 12:29:50 +0000 (12:29 +0000)
include because SMPATH is defined relative.
Paul, I don't know what you have in mind with de SMPATH definition but it
doesn't work for plugins.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3637 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 6520a09..1b8a735 100644 (file)
@@ -10,7 +10,8 @@
  * $Id$
  */
 
-define('SM_PATH','../../');
+chdir ('..');
+define('SM_PATH','../');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'include/validate.php');
index 1310ef7..1300d23 100644 (file)
@@ -10,7 +10,8 @@
  */
 
 /* Path for SquirrelMail required files. */
-define('SM_PATH','../../');
+chdir('..');
+define('SM_PATH','../');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'include/validate.php');
index 2f5aba7..c02560e 100644 (file)
@@ -10,7 +10,8 @@
  * $Id$
  */
 
-define('SM_PATH','../../');
+chdir ('..');
+define('SM_PATH','../');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'include/validate.php');