SMPATH fix
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 17:21:53 +0000 (17:21 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 17:21:53 +0000 (17:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3599 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/squirrelspell/sqspell_interface.php
plugins/squirrelspell/sqspell_options.php

index 6ea1f0d94ca6c785417518c9f37ee1caa9651b23..797a06d2c374872bcfdd42a8e9268bdd3dd63a82 100644 (file)
@@ -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");
     
index b6d9ba506af8cd561a118df25b69625c2863d492..cc1013c31056962374e2ba823dfecb81a6906ed4 100644 (file)
@@ -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");