Browse Source

SMPATH fix

stekkel 23 years ago
parent
commit
5bb40d5282
2 changed files with 15 additions and 10 deletions
  1. 8 6
      plugins/info/options.php
  2. 7 4
      plugins/listcommands/mailout.php

+ 8 - 6
plugins/info/options.php

@@ -9,12 +9,14 @@
  * 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);

+ 7 - 4
plugins/listcommands/mailout.php

@@ -9,10 +9,13 @@
  */
 
 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);