849bdf42 |
1 | <?php |
4b4abf93 |
2 | |
d112ed5a |
3 | /** |
4 | * options_main.mod |
4b4abf93 |
5 | * |
d112ed5a |
6 | * Squirrelspell module |
d112ed5a |
7 | * |
8 | * Default page called when accessing SquirrelSpell's options. |
9 | * |
4b4abf93 |
10 | * @author Konstantin Riabitsev <icon at duke.edu> |
30460a05 |
11 | * @copyright 1999-2009 The SquirrelMail Project Team |
4b4abf93 |
12 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
44d661aa |
13 | * @version $Id$ |
14 | * @package plugins |
15 | * @subpackage squirrelspell |
d112ed5a |
16 | */ |
91e0dccc |
17 | |
d112ed5a |
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>' |
7996c920 |
45 | . _("Personal dictionary encryption options are not available") |
90ad8cd1 |
46 | . '</li>'; |
d112ed5a |
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: |
2b6b400e |
56 | * vim: syntax=php |
d112ed5a |
57 | */ |