options_main.mod 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * options_main.mod
  4. *
  5. * Squirrelspell module
  6. *
  7. * Default page called when accessing SquirrelSpell's options.
  8. *
  9. * @author Konstantin Riabitsev <icon at duke.edu>
  10. * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  11. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  12. * @version $Id$
  13. * @package plugins
  14. * @subpackage squirrelspell
  15. */
  16. global $SQSPELL_APP;
  17. $msg = '<p>'
  18. . _("Please choose which options you wish to set up:")
  19. . '</p>'
  20. . '<ul>'
  21. . '<li><a href="sqspell_options.php?MOD=edit_dic">'
  22. . _("Edit your personal dictionary") . '</a></li>';
  23. /**
  24. * See if more than one dictionary is defined system-wide.
  25. * If so, let the user choose his preferred ones.
  26. */
  27. if (sizeof($SQSPELL_APP)>1) {
  28. $msg .= '<li><a href="sqspell_options.php?MOD=lang_setup">'
  29. . _("Set up international dictionaries")
  30. . "</a></li>\n";
  31. }
  32. /**
  33. * See if MCRYPT is available.
  34. * If so, let the user choose whether s/he wants to encrypt the
  35. * personal dictionary file.
  36. */
  37. if (function_exists("mcrypt_generic")) {
  38. $msg .= '<li><a href="sqspell_options.php?MOD=enc_setup">'
  39. . _("Encrypt or decrypt your personal dictionary")
  40. . "</a></li>\n";
  41. } else {
  42. $msg .= '<li>'
  43. . _("Personal dictionary encryption options are not available")
  44. . '</li>';
  45. }
  46. $msg .= "</ul>\n";
  47. sqspell_makePage( _("SquirrelSpell Options Menu"), null, $msg);
  48. /**
  49. * For Emacs weenies:
  50. * Local variables:
  51. * mode: php
  52. * End:
  53. * vim: syntax=php
  54. */