removed local directory name used for testing.
[squirrelmail.git] / plugins / squirrelspell / modules / options_main.mod
CommitLineData
849bdf42 1<?php
d112ed5a 2/**
3 * options_main.mod
4 * ----------------
5 * Squirrelspell module
9eb3fcb3 6 * Copyright (c) 1999-2005 The SquirrelMail Project Team
d112ed5a 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * Default page called when accessing SquirrelSpell's options.
10 *
44d661aa 11 * @author Konstantin Riabitsev <icon@duke.edu>
12 * @version $Id$
13 * @package plugins
14 * @subpackage squirrelspell
d112ed5a 15 */
91e0dccc 16
d112ed5a 17global $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 */
28if (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 */
38if (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>'
7996c920 44 . _("Personal dictionary encryption options are not available")
90ad8cd1 45 . '</li>';
d112ed5a 46}
47$msg .= "</ul>\n";
48sqspell_makePage( _("SquirrelSpell Options Menu"), null, $msg);
49
50/**
51 * For Emacs weenies:
52 * Local variables:
53 * mode: php
54 * End:
2b6b400e 55 * vim: syntax=php
d112ed5a 56 */
91e0dccc 57?>