The 2000000 bugfix
[squirrelmail.git] / plugins / squirrelspell / sqspell_options.php
CommitLineData
849bdf42 1<?php
d112ed5a 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 */
849bdf42 15
d112ed5a 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;
849bdf42 22
d112ed5a 23/**
24 * Load some necessary stuff from squirrelmail.
25 */
26chdir('..');
27require_once('../src/validate.php');
28require_once('../src/load_prefs.php');
29require_once('../functions/strings.php');
30require_once('../functions/page_header.php');
31require_once("$SQSPELL_DIR/sqspell_config.php");
32require_once("$SQSPELL_DIR/sqspell_functions.php");
33
34/**
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.
38 */
88cb1b4d 39if (!isset($MOD) || !$MOD){
d112ed5a 40 $MOD = 'options_main';
41} else {
42 sqspell_ckMOD($MOD);
43}
44
45/**
46 * Load the stuff already.
47 */
48require_once("$SQSPELL_DIR/modules/$MOD.mod");
15e6162e 49?>