projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RFC 3676 says there can't be more in the signature delimiter line than this
[squirrelmail.git]
/
plugins
/
squirrelspell
/
sqspell_options.php
diff --git
a/plugins/squirrelspell/sqspell_options.php
b/plugins/squirrelspell/sqspell_options.php
index a860c923dfa7cfacb7d2178214b134cf0ecba27f..85e525051d36d903d8724014fb31762796575413 100644
(file)
--- a/
plugins/squirrelspell/sqspell_options.php
+++ b/
plugins/squirrelspell/sqspell_options.php
@@
-6,13
+6,18
@@
* Main wrapper for the options interface.
*
* @author Konstantin Riabitsev <icon at duke.edu>
* Main wrapper for the options interface.
*
* @author Konstantin Riabitsev <icon at duke.edu>
- * @copyright
© 1999-2005
The SquirrelMail Project Team
+ * @copyright
1999-2010
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 a couple of constants and defaults. Don't change these,
* the configurable stuff is in sqspell_config.php
/**
* Set a couple of constants and defaults. Don't change these,
* the configurable stuff is in sqspell_config.php
@@
-21,15
+26,8
@@
$SQSPELL_DIR='plugins/squirrelspell/';
$SQSPELL_CRYPTO=FALSE;
$SQSPELL_DIR='plugins/squirrelspell/';
$SQSPELL_CRYPTO=FALSE;
-/**
- * Load some necessary stuff 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');
/**
@@
-46,7
+44,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 footer (closes html tags)
+ $oTemplate->display('footer.tpl');
}
}
-?>
\ No newline at end of file