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

plugins/info/options.php
plugins/listcommands/mailout.php

index 0578ffc..0e8ca49 100644 (file)
@@ -9,12 +9,14 @@
  * Written by: Jason Munro 
  * jason@stdbev.com
  */
  * Written by: Jason Munro 
  * jason@stdbev.com
  */
-
-chdir ('..');
-  require_once('../src/validate.php');
-  require_once('../functions/page_header.php');
-  require_once('../functions/imap.php');
-  require_once('../plugins/info/functions.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/imap.php');
+require_once(SM_PATH . 'plugins/info/functions.php');
 
 global $username, $color, $folder_prefix, $default_charset;
 $default_charset = strtoupper($default_charset);
 
 global $username, $color, $folder_prefix, $default_charset;
 $default_charset = strtoupper($default_charset);
index 08d729e..6a2ef13 100644 (file)
@@ -9,10 +9,13 @@
  */
 
 chdir('..');
  */
 
 chdir('..');
-include_once ('../src/validate.php');
-include_once ('../functions/page_header.php');
-include_once ('../src/load_prefs.php');
-include_once('../functions/html.php');
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+include_once(SM_PATH . 'functions/page_header.php');
+include_once(SM_PATH . 'src/load_prefs.php');
+include_once(SM_PATH . 'functions/html.php');
 
 displayPageHeader($color, $mailbox);
 
 
 displayPageHeader($color, $mailbox);