Source for file sqspell_options.php

Documentation is available at sqspell_options.php

  1. <?php
  2. /**
  3.  * sqspell_options.php
  4.  *
  5.  * Main wrapper for the options interface.
  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.  * @author Konstantin Riabitsev <[email protected]>
  11.  * @version $Id: sqspell_options.php 14840 2020-01-07 07:42:38Z pdontthink $
  12.  * @package plugins
  13.  * @subpackage squirrelspell
  14.  */
  15.  
  16. /**
  17.  * Load some necessary stuff from SquirrelMail.
  18.  * @ignore
  19.  */
  20. define('SM_PATH','../../');
  21.  
  22. /* SquirrelMail required files. */
  23. require_once(SM_PATH 'include/validate.php');
  24. require_once(SM_PATH 'include/load_prefs.php');
  25. require_once(SM_PATH 'functions/strings.php');
  26. require_once(SM_PATH 'functions/page_header.php');
  27.  
  28. /**
  29.  * Set a couple of constants and defaults. Don't change these,
  30.  * the configurable stuff is in sqspell_config.php
  31.  */
  32. $SQSPELL_DIR='plugins/squirrelspell/';
  33. $SQSPELL_CRYPTO=FALSE;
  34.  
  35. require_once(SM_PATH $SQSPELL_DIR 'sqspell_config.php');
  36. require_once(SM_PATH $SQSPELL_DIR 'sqspell_functions.php');
  37.  
  38. /**
  39.  * $MOD is the name of the module to invoke.
  40.  * If $MOD is unspecified, assign "options_main" to it. Else check for
  41.  * security breach attempts.
  42.  */
  43. if(isset($_POST['MOD'])) {
  44.     $MOD $_POST['MOD'];
  45. elseif (isset($_GET['MOD'])) {
  46.     $MOD $_GET['MOD'];
  47. }
  48.  
  49. if(!isset($MOD|| !$MOD{
  50.   $MOD 'options_main';
  51. else {
  52.   sqspell_ckMOD($MOD);
  53. }
  54.  
  55. /* Load the stuff already. */
  56. 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