X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_interface.php;h=56ad35659328d859014218129330309f53242677;hb=8ab3c1bd38409d09e1c336107ebee474b5a7dd39;hp=5c35980c890ae868e0cf4f307c941764d82454be;hpb=47ccfad452e8d345542d09e59112cac317cffed8;p=squirrelmail.git diff --git a/plugins/squirrelspell/sqspell_interface.php b/plugins/squirrelspell/sqspell_interface.php index 5c35980c..56ad3565 100644 --- a/plugins/squirrelspell/sqspell_interface.php +++ b/plugins/squirrelspell/sqspell_interface.php @@ -9,13 +9,18 @@ * SquirrelSpell. * * @author Konstantin Riabitsev - * @copyright © 1999-2006 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 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; -/** - * 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'); /** @@ -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 { - error_box(_("Invalid SquirrelSpell module."),$color); - echo ''; + error_box(_("Invalid SquirrelSpell module.")); + // display sm footer (closes html tags) + $oTemplate->display('footer.tpl'); } -?> \ No newline at end of file