fixed warnings
[squirrelmail.git] / plugins / squirrelspell / sqspell_interface.php
CommitLineData
849bdf42 1<?php
2
d112ed5a 3/**
4 * sqspell_interface.php
8d6a115b 5 *
d112ed5a 6 * Main wrapper for the pop-up.
7 *
8 * Copyright (c) 1999-2002 The SquirrelMail development team
9 * Licensed under the GNU GPL. For full terms see the file COPYING.
10 *
11 * This is a main wrapper for the pop-up window interface of
12 * SquirrelSpell.
13 *
14 * $Id$
15 *
16 * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
17 * @version $Date$
18 */
849bdf42 19
d112ed5a 20/**
21 * Set up a couple of non-negotiable constants and
22 * defaults. Don't change these, * the setuppable stuff is in
23 * sqspell_config.php
24 */
8d6a115b 25$SQSPELL_DIR='plugins/squirrelspell/';
d112ed5a 26$SQSPELL_CRYPTO=FALSE;
9804bcde 27
d112ed5a 28/**
29 * Load the stuff needed from squirrelmail
30 */
7e54b325 31
92219031 32define('SM_PATH','../../');
7e54b325 33
34/* SquirrelMail required files. */
35require_once(SM_PATH . 'include/validate.php');
aa7fb30c 36require_once(SM_PATH . 'include/load_prefs.php');
cd7fc9e6 37require_once(SM_PATH . $SQSPELL_DIR . 'sqspell_config.php');
38require_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');
9804bcde 39
d112ed5a 40/**
41 * $MOD is the name of the module to invoke.
42 * If $MOD is undefined, use "init", else check for security
43 * breaches.
44 */
88cb1b4d 45if (!isset($MOD) || !$MOD){
8d6a115b 46 $MOD='init';
d112ed5a 47} else {
8d6a115b 48 sqspell_ckMOD($MOD);
d112ed5a 49}
50
8d6a115b 51/* Include the module. */
cd7fc9e6 52require_once(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod");
8d6a115b 53
15e6162e 54?>