소스 검색

SMPATH fix

stekkel 23 년 전
부모
커밋
4d4b812a7d
2개의 변경된 파일14개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 2
      plugins/squirrelspell/sqspell_interface.php
  2. 8 4
      plugins/squirrelspell/sqspell_options.php

+ 6 - 2
plugins/squirrelspell/sqspell_interface.php

@@ -28,9 +28,13 @@ $SQSPELL_CRYPTO=FALSE;
 /**
  * Load the stuff needed from squirrelmail
  */
+
 chdir('..');
-require_once('../src/validate.php');
-require_once('../src/load_prefs.php');
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'src/load_prefs.php');
 require_once("$SQSPELL_DIR/sqspell_config.php");
 require_once("$SQSPELL_DIR/sqspell_functions.php");
     

+ 8 - 4
plugins/squirrelspell/sqspell_options.php

@@ -24,10 +24,14 @@ $SQSPELL_CRYPTO=FALSE;
  * Load some necessary stuff from squirrelmail. 
  */
 chdir('..');
-require_once('../src/validate.php');
-require_once('../src/load_prefs.php');
-require_once('../functions/strings.php');
-require_once('../functions/page_header.php');
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'src/validate.php');
+require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'functions/page_header.php');
 require_once("$SQSPELL_DIR/sqspell_config.php");
 require_once("$SQSPELL_DIR/sqspell_functions.php");