Source for file sqspell_options.php

Documentation is available at sqspell_options.php

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

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