X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_options.php;h=260f2ec9f42e9477660c8cddf24637b1b8c8e145;hb=2cefa62ab30cc730b8683ee47ec69728ab89d773;hp=9003e57bb5ed9043f73e41a4034a180dd71c0405;hpb=e5af0839643a1546b97c884212afa73907042465;p=squirrelmail.git diff --git a/plugins/squirrelspell/sqspell_options.php b/plugins/squirrelspell/sqspell_options.php index 9003e57b..260f2ec9 100644 --- a/plugins/squirrelspell/sqspell_options.php +++ b/plugins/squirrelspell/sqspell_options.php @@ -1,18 +1,23 @@ + * @author Konstantin Riabitsev + * @copyright 1999-2012 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