4 * sqspell_interface.php
6 * Main wrapper for the pop-up.
8 * Copyright (c) 1999-2004 The SquirrelMail development team
9 * Licensed under the GNU GPL. For full terms see the file COPYING.
11 * This is a main wrapper for the pop-up window interface of
16 * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
19 * @subpackage squirrelspell
23 * Set up a couple of non-negotiable constants and
24 * defaults. Don't change these, * the setuppable stuff is in
27 $SQSPELL_DIR='plugins/squirrelspell/';
28 $SQSPELL_CRYPTO=FALSE;
31 * Load the stuff needed from squirrelmail
34 define('SM_PATH','../../');
36 /* SquirrelMail required files. */
37 require_once(SM_PATH
. 'include/validate.php');
38 require_once(SM_PATH
. 'include/load_prefs.php');
39 require_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_config.php');
40 require_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_functions.php');
43 * $MOD is the name of the module to invoke.
44 * If $MOD is undefined, use "init", else check for security
47 if(isset($_POST['MOD'])) {
49 } elseif (isset($_GET['MOD'])) {
53 if (!isset($MOD) ||
!$MOD){
59 /* Include the module. */
60 require_once(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod");