sqspell_options.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * sqspell_options.php
  4. * --------------------
  5. * Main wrapper for the options interface.
  6. *
  7. * Copyright (c) 1999-2002 The SquirrelMail development team
  8. * Licensed under the GNU GPL. For full terms see the file COPYING.
  9. *
  10. * $Id$
  11. *
  12. * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
  13. * @version $Date$
  14. */
  15. /**
  16. * Set a couple of constants and defaults. Don't change these,
  17. * the configurable stuff is in sqspell_config.php
  18. */
  19. $SQSPELL_DIR='squirrelspell';
  20. $SQSPELL_CRYPTO=FALSE;
  21. /**
  22. * Load some necessary stuff from squirrelmail.
  23. */
  24. chdir('..');
  25. require_once('../src/validate.php');
  26. require_once('../src/load_prefs.php');
  27. require_once('../functions/strings.php');
  28. require_once('../functions/page_header.php');
  29. require_once("$SQSPELL_DIR/sqspell_config.php");
  30. require_once("$SQSPELL_DIR/sqspell_functions.php");
  31. /**
  32. * $MOD is the name of the module to invoke.
  33. * If $MOD is unspecified, assign "init" to it. Else check for
  34. * security breach attempts.
  35. */
  36. if (!isset($MOD) || !$MOD){
  37. $MOD = 'options_main';
  38. } else {
  39. sqspell_ckMOD($MOD);
  40. }
  41. /**
  42. * Load the stuff already.
  43. */
  44. require_once("$SQSPELL_DIR/modules/$MOD.mod");
  45. ?>