X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_options.php;h=bde8bcf8cc3a569a17dcc6c0442e33c348b4493d;hb=6f62ecc17c3b4e265b1cd63470c392c84018bb62;hp=a860c923dfa7cfacb7d2178214b134cf0ecba27f;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git diff --git a/plugins/squirrelspell/sqspell_options.php b/plugins/squirrelspell/sqspell_options.php index a860c923..bde8bcf8 100644 --- 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 - * @copyright © 1999-2005 The SquirrelMail Project Team + * @copyright © 1999-2007 The SquirrelMail Project Team * @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 @@ -21,15 +26,8 @@ $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'); /** @@ -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 { - error_box(_("Invalid SquirrelSpell module."),$color); - echo ''; + error_box(_("Invalid SquirrelSpell module.")); + // display footer (closes html tags) + $oTemplate->display('footer.tpl'); } -?> \ No newline at end of file