SMPATH BORKED everything
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 17:24:31 +0000 (17:24 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 17:24:31 +0000 (17:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3601 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/newmail/newmail.php
plugins/newmail/newmail_opt.php
plugins/newmail/testsound.php

index 5640779..7e919cb 100644 (file)
     **  $Id$
     **    
     **/
-    
-   chdir ('../');
-   require_once('../src/validate.php');
-   require_once('../src/load_prefs.php');
-   require_once('../functions/page_header.php');
+   chdir('..');
+   define('SM_PATH','../');
+
+    /* SquirrelMail required files. */
+   require_once(SM_PATH . 'include/validate.php');
+   require_once(SM_PATH . 'src/load_prefs.php');
+   require_once(SM_PATH . 'functions/page_header.php');
 
    displayHtmlHeader( _("New Mail"), '', FALSE );
 
index 0f3c701..87426a4 100644 (file)
     **
     **/
 
-    chdir("..");
-    require_once('../src/validate.php');
-    require_once('../functions/page_header.php');
-    require_once('../functions/display_messages.php');
-    require_once('../functions/imap.php');
-    require_once('../functions/array.php');
-    require_once('../src/load_prefs.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/display_messages.php');
+    require_once(SM_PATH . 'functions/imap.php');
+    require_once(SM_PATH . 'functions/array.php');
+    require_once(SM_PATH . 'src/load_prefs.php');
 
     displayPageHeader($color, 'None');
 
index 0bcb4a7..f8ddde9 100644 (file)
  */
 
    chdir ("../");
-   require_once('../src/validate.php');
-   require_once('../functions/html.php');
-   require_once("../src/load_prefs.php");
+   chdir('..');
+   define('SM_PATH','../');
+
+   /* SquirrelMail required files. */
+   require_once(SM_PATH . 'include/validate.php');
+   require_once(SM_PATH . 'functions/html.php');
+   require_once(SM_PATH . 'src/load_prefs.php');
+
    if (!isset($sound)) {
     $sound = "Click.wav";
    }