From: stekkel Date: Fri, 6 Sep 2002 17:21:53 +0000 (+0000) Subject: SMPATH fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7e54b3251c709eaa35e3b6d24535b2fac2e5bdd0;p=squirrelmail.git SMPATH fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3599 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/squirrelspell/sqspell_interface.php b/plugins/squirrelspell/sqspell_interface.php index 6ea1f0d9..797a06d2 100644 --- a/plugins/squirrelspell/sqspell_interface.php +++ b/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"); diff --git a/plugins/squirrelspell/sqspell_options.php b/plugins/squirrelspell/sqspell_options.php index b6d9ba50..cc1013c3 100644 --- a/plugins/squirrelspell/sqspell_options.php +++ b/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");