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-2007 The SquirrelMail Project Team
13 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
16 * @subpackage squirrelspell
20 * Include the SquirrelMail initialization file.
22 require('../../include/init.php');
25 * Set up a couple of non-negotiable constants and
26 * defaults. Don't change these, * the setuppable stuff is in
29 $SQSPELL_DIR='plugins/squirrelspell/';
30 $SQSPELL_CRYPTO=FALSE;
32 include_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_functions.php');
35 * $MOD is the name of the module to invoke.
36 * If $MOD is unspecified, assign "init" to it. Else check for
37 * security breach attempts.
39 if(! sqgetGlobalVar('MOD',$MOD,SQ_FORM
)) {
44 /* Load the stuff already. */
45 if (file_exists(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod")) {
46 require_once(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod");
48 error_box(_("Invalid SquirrelSpell module."));
49 // display sm footer (closes html tags)
50 $oTemplate->display('footer.tpl');