Source for file sqspell_interface.php

Documentation is available at sqspell_interface.php

  1. <?php
  2.  
  3. /**
  4.  * sqspell_interface.php
  5.  *
  6.  * Main wrapper for the pop-up.
  7.  *
  8.  * This is a main wrapper for the pop-up window interface of
  9.  * SquirrelSpell.
  10.  *
  11.  * @author Konstantin Riabitsev <icon at duke.edu>
  12.  * @copyright 1999-2020 The SquirrelMail Project Team
  13.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  14.  * @version $Id: sqspell_interface.php 14845 2020-01-07 08:09:34Z pdontthink $
  15.  * @package plugins
  16.  * @subpackage squirrelspell
  17.  */
  18.  
  19. /**
  20.  * Include the SquirrelMail initialization file.
  21.  */
  22. require('../../include/init.php');
  23.  
  24. /**
  25.  * Set up a couple of non-negotiable constants and
  26.  * defaults. Don't change these, * the setuppable stuff is in
  27.  * sqspell_config.php
  28.  */
  29. $SQSPELL_DIR='plugins/squirrelspell/';
  30. $SQSPELL_CRYPTO=FALSE;
  31.  
  32. include_once(SM_PATH $SQSPELL_DIR 'sqspell_functions.php');
  33.  
  34. /**
  35.  * $MOD is the name of the module to invoke.
  36.  * If $MOD is unspecified, assign "init" to it. Else check for
  37.  * security breach attempts.
  38.  */
  39. if(sqgetGlobalVar('MOD',$MOD,SQ_FORM)) {
  40.     $MOD 'init';
  41. }
  42.  
  43. /* Load the stuff already. */
  44. if (file_exists(SM_PATH $SQSPELL_DIR "modules/$MOD.mod")) {
  45.     require_once(SM_PATH $SQSPELL_DIR "modules/$MOD.mod");
  46. else {
  47.     error_box(_("Invalid SquirrelSpell module."));
  48.     // display sm footer (closes html tags)
  49.     $oTemplate->display('footer.tpl');
  50. }

Documentation generated on Mon, 13 Jan 2020 04:23:35 +0100 by phpDocumentor 1.4.3