SMPATH BORKED everything
[squirrelmail.git] / plugins / newmail / newmail_opt.php
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');
 
 
     displayPageHeader($color, 'None');