9ad26b04f75419311a9c00b360d0751cbe96cce3
[squirrelmail.git] / plugins / squirrelspell / modules / options_main.mod.php
1 <?php
2 /**
3 OPTIONS_MAIN.MOD.PHP
4 ---------------------
5 Default page called when accessing SquirrelSpell's options.
6 **/
7 // E_ALL: protection behind 3000 miles.
8 global $SQSPELL_APP;
9
10 $msg = "<p>Please choose which options you wish to set up:</p>
11 <ul>
12 <li><a href=\"sqspell_options.php?MOD=edit_dic\">Edit your personal dictionary</a></li>
13 ";
14 // See if more than one dictionary is defined system-wide.
15 // If so, let the user choose his preferred ones.
16 if (sizeof($SQSPELL_APP)>1)
17 $msg .= "<li><a href=\"sqspell_options.php?MOD=lang_setup\">Set up international dictionaries</a></li>\n";
18 // See if MCRYPT is available.
19 // If so, let the user choose whether s/he wants to encrypt the
20 // personal dictionary file.
21 if (function_exists("mcrypt_generic"))
22 $msg .= "<li><a href=\"sqspell_options.php?MOD=enc_setup\">Encrypt or decrypt your personal dictionary</a></li>\n";
23 else $msg .= "<li>Encrypt or decrypt your personal dictionary <em>(not available)</em></li>\n";
24 $msg .= "</ul>\n";
25 sqspell_makePage("SquirrelSpell Options Menu", null, $msg);
26
27 ?>