projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The mf_cypher variable was not being set in prefs correctly
[squirrelmail.git]
/
plugins
/
squirrelspell
/
sqspell_interface.php
diff --git
a/plugins/squirrelspell/sqspell_interface.php
b/plugins/squirrelspell/sqspell_interface.php
index 5c35980c890ae868e0cf4f307c941764d82454be..56ad35659328d859014218129330309f53242677 100644
(file)
--- a/
plugins/squirrelspell/sqspell_interface.php
+++ b/
plugins/squirrelspell/sqspell_interface.php
@@
-9,13
+9,18
@@
* SquirrelSpell.
*
* @author Konstantin Riabitsev <icon at duke.edu>
* SquirrelSpell.
*
* @author Konstantin Riabitsev <icon at duke.edu>
- * @copyright © 1999-200
6
The SquirrelMail Project Team
+ * @copyright © 1999-200
7
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage squirrelspell
*/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage squirrelspell
*/
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
+
/**
* Set up a couple of non-negotiable constants and
* defaults. Don't change these, * the setuppable stuff is in
/**
* Set up a couple of non-negotiable constants and
* defaults. Don't change these, * the setuppable stuff is in
@@
-24,15
+29,6
@@
$SQSPELL_DIR='plugins/squirrelspell/';
$SQSPELL_CRYPTO=FALSE;
$SQSPELL_DIR='plugins/squirrelspell/';
$SQSPELL_CRYPTO=FALSE;
-/**
- * Load the stuff needed from SquirrelMail
- * @ignore
- */
-define('SM_PATH','../../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-include_once(SM_PATH . 'functions/display_messages.php');
include_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');
/**
include_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');
/**
@@
-49,7
+45,7
@@
sqspell_ckMOD($MOD);
if (file_exists(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod")) {
require_once(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod");
} else {
if (file_exists(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod")) {
require_once(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod");
} else {
- error_box(_("Invalid SquirrelSpell module."),$color);
- echo '</body></html>';
+ error_box(_("Invalid SquirrelSpell module."));
+ // display sm footer (closes html tags)
+ $oTemplate->display('footer.tpl');
}
}
-?>
\ No newline at end of file