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