options_main.mod 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * options_main.mod
  4. * ----------------
  5. * Squirrelspell module
  6. * Copyright (c) 1999-2002 The SquirrelMail development team
  7. * Licensed under the GNU GPL. For full terms see the file COPYING.
  8. *
  9. * Default page called when accessing SquirrelSpell's options.
  10. *
  11. * $Id$
  12. *
  13. * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
  14. * @version $Date$
  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. . _("Encrypt or decrypt your personal dictionary") . ' <em>('
  44. . _("not available") . ')</em></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. */
  54. ?>