using 'pass' instead of 'ascii'. internal mbstring encoding that should
[squirrelmail.git] / plugins / squirrelspell / sqspell_options.php
CommitLineData
849bdf42 1<?php
d112ed5a 2/**
91e0dccc 3 * sqspell_options.php
8d6a115b 4 *
d112ed5a 5 * Main wrapper for the options interface.
6 *
9eb3fcb3 7 * Copyright (c) 1999-2005 The SquirrelMail Project Team
d112ed5a 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$
ea5f4b8e 14 * @package plugins
15 * @subpackage squirrelspell
d112ed5a 16 */
849bdf42 17
d112ed5a 18/**
91e0dccc 19 * Set a couple of constants and defaults. Don't change these,
d112ed5a 20 * the configurable stuff is in sqspell_config.php
21 */
8d6a115b 22$SQSPELL_DIR='plugins/squirrelspell/';
d112ed5a 23$SQSPELL_CRYPTO=FALSE;
849bdf42 24
d112ed5a 25/**
598294a7 26 * Load some necessary stuff from SquirrelMail.
ea5f4b8e 27 * @ignore
d112ed5a 28 */
92219031 29define('SM_PATH','../../');
7e54b325 30
31/* SquirrelMail required files. */
32require_once(SM_PATH . 'include/validate.php');
aa7fb30c 33require_once(SM_PATH . 'include/load_prefs.php');
7e54b325 34require_once(SM_PATH . 'functions/strings.php');
35require_once(SM_PATH . 'functions/page_header.php');
bd9c880b 36require_once(SM_PATH . $SQSPELL_DIR . 'sqspell_config.php');
37require_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');
d112ed5a 38
39/**
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.
43 */
8a9f9d09 44if(isset($_POST['MOD'])) {
45 $MOD = $_POST['MOD'];
46} elseif (isset($_GET['MOD'])) {
47 $MOD = $_GET['MOD'];
48}
49
50if(!isset($MOD) || !$MOD) {
d112ed5a 51 $MOD = 'options_main';
52} else {
53 sqspell_ckMOD($MOD);
54}
55
8d6a115b 56/* Load the stuff already. */
bd9c880b 57require_once(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod");
8d6a115b 58
ce68b76b 59?>