Search was broken. fixed. List all is weird however, it works but does not alternate...
[squirrelmail.git] / plugins / squirrelspell / modules / options_main.mod
1 <?php
2
3 /**
4 ** OPTIONS_MAIN.MOD.PHP -- Squirrelspell module
5 **
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
14 // E_ALL: protection behind 3000 miles.
15 global $SQSPELL_APP;
16
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 // See if more than one dictionary is defined system-wide.
24 // If so, let the user choose his preferred ones.
25 if (sizeof($SQSPELL_APP)>1) {
26 $msg .= '<li><a href="sqspell_options.php?MOD=lang_setup">'.
27 _("Set up international dictionaries") .
28 "</a></li>\n";
29 }
30 // See if MCRYPT is available.
31 // If so, let the user choose whether s/he wants to encrypt the
32 // personal dictionary file.
33 if (function_exists("mcrypt_generic")) {
34 $msg .= '<li><a href="sqspell_options.php?MOD=enc_setup">'.
35 _("Encrypt or decrypt your personal dictionary").
36 "</a></li>\n";
37 } else {
38 $msg .= '<li>'.
39 _("Encrypt or decrypt your personal dictionary") . ' <em>(' . _("not available") . ')</em>'.
40 "</li>\n";
41 }
42 $msg .= "</ul>\n";
43 sqspell_makePage( _("SquirrelSpell Options Menu"), null, $msg);
44
45 ?>