stekkel il y a 23 ans
Parent
commit
4d4b812a7d

+ 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");