5 * Main wrapper for the options interface.
7 * Copyright (c) 1999-2005 The SquirrelMail Project Team
8 * Licensed under the GNU GPL. For full terms see the file COPYING.
12 * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
15 * @subpackage squirrelspell
19 * Set a couple of constants and defaults. Don't change these,
20 * the configurable stuff is in sqspell_config.php
22 $SQSPELL_DIR='plugins/squirrelspell/';
23 $SQSPELL_CRYPTO=FALSE;
26 * Load some necessary stuff from SquirrelMail.
29 define('SM_PATH','../../');
31 /* SquirrelMail required files. */
32 require_once(SM_PATH
. 'include/validate.php');
33 require_once(SM_PATH
. 'include/load_prefs.php');
34 require_once(SM_PATH
. 'functions/strings.php');
35 require_once(SM_PATH
. 'functions/page_header.php');
36 require_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_config.php');
37 require_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_functions.php');
40 * $MOD is the name of the module to invoke.
41 * If $MOD is unspecified, assign "init" to it. Else check for
42 * security breach attempts.
44 if(isset($_POST['MOD'])) {
46 } elseif (isset($_GET['MOD'])) {
50 if(!isset($MOD) ||
!$MOD) {
51 $MOD = 'options_main';
56 /* Load the stuff already. */
57 require_once(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod");