cc1013c31056962374e2ba823dfecb81a6906ed4
[squirrelmail.git] / plugins / squirrelspell / sqspell_options.php
1 <?php
2 /**
3 * sqspell_options.php
4 * --------------------
5 * Main wrapper for the options interface.
6 *
7 * Copyright (c) 1999-2002 The SquirrelMail development team
8 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 *
10 * $Id$
11 *
12 * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
13 * @version $Date$
14 */
15
16 /**
17 * Set a couple of constants and defaults. Don't change these,
18 * the configurable stuff is in sqspell_config.php
19 */
20 $SQSPELL_DIR='squirrelspell';
21 $SQSPELL_CRYPTO=FALSE;
22
23 /**
24 * Load some necessary stuff from squirrelmail.
25 */
26 chdir('..');
27 define('SM_PATH','../');
28
29 /* SquirrelMail required files. */
30 require_once(SM_PATH . 'include/validate.php');
31 require_once(SM_PATH . 'src/validate.php');
32 require_once(SM_PATH . 'src/load_prefs.php');
33 require_once(SM_PATH . 'functions/strings.php');
34 require_once(SM_PATH . 'functions/page_header.php');
35 require_once("$SQSPELL_DIR/sqspell_config.php");
36 require_once("$SQSPELL_DIR/sqspell_functions.php");
37
38 /**
39 * $MOD is the name of the module to invoke.
40 * If $MOD is unspecified, assign "init" to it. Else check for
41 * security breach attempts.
42 */
43 if (!isset($MOD) || !$MOD){
44 $MOD = 'options_main';
45 } else {
46 sqspell_ckMOD($MOD);
47 }
48
49 /**
50 * Load the stuff already.
51 */
52 require_once("$SQSPELL_DIR/modules/$MOD.mod");
53 ?>