X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_interface.php;h=c9d9f981e5b5ca82002e304c724f4e330c68a8b7;hp=6e3b71be3903471fe9b35898c5d74acbe1285df2;hb=16dd8736f68b753f06df30ff39892ef18579e2ce;hpb=7996c92035dda79d42c5922c225dd62c1e73ecb3;ds=sidebyside diff --git a/plugins/squirrelspell/sqspell_interface.php b/plugins/squirrelspell/sqspell_interface.php index 6e3b71be..c9d9f981 100644 --- a/plugins/squirrelspell/sqspell_interface.php +++ b/plugins/squirrelspell/sqspell_interface.php @@ -1,21 +1,26 @@ + * @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 up a couple of non-negotiable constants and * defaults. Don't change these, * the setuppable stuff is in @@ -24,16 +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_config.php'); include_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php'); /** @@ -50,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