Dutch updates for SM cvs
[squirrelmail.git] / plugins / squirrelspell / sqspell_options.php
CommitLineData
849bdf42 1<?php
d112ed5a 2/**
3 * sqspell_options.php
8d6a115b 4 *
d112ed5a 5 * Main wrapper for the options interface.
6 *
76911253 7 * Copyright (c) 1999-2003 The SquirrelMail development 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$
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 */
8d6a115b 20$SQSPELL_DIR='plugins/squirrelspell/';
d112ed5a 21$SQSPELL_CRYPTO=FALSE;
849bdf42 22
d112ed5a 23/**
24 * Load some necessary stuff from squirrelmail.
25 */
92219031 26define('SM_PATH','../../');
7e54b325 27
28/* SquirrelMail required files. */
29require_once(SM_PATH . 'include/validate.php');
aa7fb30c 30require_once(SM_PATH . 'include/load_prefs.php');
7e54b325 31require_once(SM_PATH . 'functions/strings.php');
32require_once(SM_PATH . 'functions/page_header.php');
bd9c880b 33require_once(SM_PATH . $SQSPELL_DIR . 'sqspell_config.php');
34require_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');
d112ed5a 35
36/**
37 * $MOD is the name of the module to invoke.
38 * If $MOD is unspecified, assign "init" to it. Else check for
39 * security breach attempts.
40 */
8a9f9d09 41if(isset($_POST['MOD'])) {
42 $MOD = $_POST['MOD'];
43} elseif (isset($_GET['MOD'])) {
44 $MOD = $_GET['MOD'];
45}
46
47if(!isset($MOD) || !$MOD) {
d112ed5a 48 $MOD = 'options_main';
49} else {
50 sqspell_ckMOD($MOD);
51}
52
8d6a115b 53/* Load the stuff already. */
bd9c880b 54require_once(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod");
8d6a115b 55
15e6162e 56?>