6 * Main wrapper for the options interface.
8 * @author Konstantin Riabitsev <icon at duke.edu>
9 * @copyright © 1999-2006 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @subpackage squirrelspell
17 * Set a couple of constants and defaults. Don't change these,
18 * the configurable stuff is in sqspell_config.php
19 * @todo do we really need $SQSPELL_DIR var?
21 $SQSPELL_DIR='plugins/squirrelspell/';
22 $SQSPELL_CRYPTO=FALSE;
26 * Include the SquirrelMail initialization file.
28 require('../../include/init.php');
30 include_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_functions.php');
33 * $MOD is the name of the module to invoke.
34 * If $MOD is unspecified, assign "options_main" to it. Else check for
35 * security breach attempts.
37 if(! sqgetGlobalVar('MOD',$MOD,SQ_FORM
)) {
38 $MOD = 'options_main';
42 /* Load the stuff already. */
43 if (file_exists(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod")) {
44 require_once(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod");
46 error_box(_("Invalid SquirrelSpell module."));
47 // display footer (closes html tags)
48 $oTemplate->display('footer.tpl');