849bdf42 |
1 | <?php |
d112ed5a |
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 | */ |
2b5a7157 |
16 | |
d112ed5a |
17 | global $SQSPELL_APP; |
18 | $msg = '<p>' |
19 | . _("Please choose which options you wish to set up:") |
20 | . '</p>' |
21 | . '<ul>' |
22 | . '<li><a href="sqspell_options.php?MOD=edit_dic">' |
23 | . _("Edit your personal dictionary") . '</a></li>'; |
24 | /** |
25 | * See if more than one dictionary is defined system-wide. |
26 | * If so, let the user choose his preferred ones. |
27 | */ |
28 | if (sizeof($SQSPELL_APP)>1) { |
29 | $msg .= '<li><a href="sqspell_options.php?MOD=lang_setup">' |
30 | . _("Set up international dictionaries") |
31 | . "</a></li>\n"; |
32 | } |
33 | /** |
34 | * See if MCRYPT is available. |
35 | * If so, let the user choose whether s/he wants to encrypt the |
36 | * personal dictionary file. |
37 | */ |
38 | if (function_exists("mcrypt_generic")) { |
39 | $msg .= '<li><a href="sqspell_options.php?MOD=enc_setup">' |
40 | . _("Encrypt or decrypt your personal dictionary") |
41 | . "</a></li>\n"; |
42 | } else { |
43 | $msg .= '<li>' |
44 | . _("Encrypt or decrypt your personal dictionary") . ' <em>(' |
45 | . _("not available") . ')</em></li>'; |
46 | } |
47 | $msg .= "</ul>\n"; |
48 | sqspell_makePage( _("SquirrelSpell Options Menu"), null, $msg); |
49 | |
50 | /** |
51 | * For Emacs weenies: |
52 | * Local variables: |
53 | * mode: php |
54 | * End: |
55 | */ |
15e6162e |
56 | ?> |