Source for file sqspell_interface.php

Documentation is available at sqspell_interface.php

  1. <?php
  2. /**
  3.  * sqspell_interface.php
  4.  *
  5.  * Main wrapper for the pop-up.
  6.  *
  7.  * Copyright (c) 1999-2020 The SquirrelMail Project Team
  8.  * Licensed under the GNU GPL. For full terms see the file COPYING.
  9.  *
  10.  * This is a main wrapper for the pop-up window interface of
  11.  * SquirrelSpell.
  12.  *
  13.  * @author Konstantin Riabitsev <[email protected]>
  14.  * @version $Id: sqspell_interface.php 14840 2020-01-07 07:42:38Z pdontthink $
  15.  * @package plugins
  16.  * @subpackage squirrelspell
  17.  */
  18.  
  19. /**
  20.  * Load the stuff needed from SquirrelMail
  21.  * @ignore
  22.  */
  23. define('SM_PATH','../../');
  24.  
  25. /* SquirrelMail required files. */
  26. require_once(SM_PATH 'include/validate.php');
  27. require_once(SM_PATH 'include/load_prefs.php');
  28.  
  29. /**
  30.  * Set up a couple of non-negotiable constants and
  31.  * defaults. Don't change these, * the setuppable stuff is in
  32.  * sqspell_config.php
  33.  */
  34. $SQSPELL_DIR='plugins/squirrelspell/';
  35. $SQSPELL_CRYPTO=FALSE;
  36.  
  37. require_once(SM_PATH $SQSPELL_DIR 'sqspell_config.php');
  38. require_once(SM_PATH $SQSPELL_DIR 'sqspell_functions.php');
  39.  
  40. /**
  41.  * $MOD is the name of the module to invoke.
  42.  * If $MOD is unspecified, assign "init" to it. Else check for
  43.  * security breach attempts.
  44.  */
  45. if(isset($_POST['MOD'])) {
  46.     $MOD $_POST['MOD'];
  47. elseif (isset($_GET['MOD'])) {
  48.     $MOD $_GET['MOD'];
  49. }
  50.  
  51. if (!isset($MOD|| !$MOD){
  52.     $MOD='init';
  53. else {
  54.     sqspell_ckMOD($MOD);
  55. }
  56.  
  57. /* Include the module. */
  58. require_once(SM_PATH $SQSPELL_DIR "modules/$MOD.mod");

Documentation generated on Mon, 13 Jan 2020 04:25:22 +0100 by phpDocumentor 1.4.3