a899ad037d1fe688a7fc4c3a4f6a680814e8e4f4
3 * sqspell_interface.php
5 * Main wrapper for the pop-up.
7 * Copyright (c) 1999-2005 The SquirrelMail Project Team
8 * Licensed under the GNU GPL. For full terms see the file COPYING.
10 * This is a main wrapper for the pop-up window interface of
13 * @author Konstantin Riabitsev <icon@duke.edu>
16 * @subpackage squirrelspell
20 * Set up a couple of non-negotiable constants and
21 * defaults. Don't change these, * the setuppable stuff is in
24 $SQSPELL_DIR='plugins/squirrelspell/';
25 $SQSPELL_CRYPTO=FALSE;
28 * Load the stuff needed from SquirrelMail
31 define('SM_PATH','../../');
33 /* SquirrelMail required files. */
34 require_once(SM_PATH
. 'include/validate.php');
35 include_once(SM_PATH
. 'functions/display_messages.php');
36 include_once(SM_PATH
. $SQSPELL_DIR . 'sqspell_functions.php');
39 * $MOD is the name of the module to invoke.
40 * If $MOD is unspecified, assign "init" to it. Else check for
41 * security breach attempts.
43 if(! sqgetGlobalVar('MOD',$MOD,SQ_FORM
)) {
48 /* Load the stuff already. */
49 if (file_exists(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod")) {
50 require_once(SM_PATH
. $SQSPELL_DIR . "modules/$MOD.mod");
52 error_box(_("Invalid SquirrelSpell module."),$color);
53 echo '</body></html>';