4 * sqspell_interface.php
6 * Main wrapper for the pop-up.
8 * This is a main wrapper for the pop-up window interface of
11 * @author Konstantin Riabitsev <icon at duke.edu>
12 * @copyright © 1999-2006 The SquirrelMail Project Team
13 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
16 * @subpackage squirrelspell
20 * Set up a couple of non-negotiable constants and
21 * defaults. Don't change these, * the setuppable stuff is in
24 $SQSPELL_DIR='plugins/squirrelspell/';
25 $SQSPELL_CRYPTO=FALSE;
29 * Include the SquirrelMail initialization file.
31 require('../../include/init.php');
33 include_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_functions.php');
36 * $MOD is the name of the module to invoke.
37 * If $MOD is unspecified, assign "init" to it. Else check for
38 * security breach attempts.
40 if(! sqgetGlobalVar('MOD',$MOD,SQ_FORM
)) {
45 /* Load the stuff already. */
46 if (file_exists(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod")) {
47 require_once(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod");
49 error_box(_("Invalid SquirrelSpell module."));
50 // display sm footer (closes html tags)
51 $oTemplate->display('footer.tpl');