~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to plugins/squirrelspell/modules/options_main.mod

  • Committer: Bazaar Package Importer
  • Author(s): Sam Johnston
  • Date: 2004-02-04 01:42:12 UTC
  • Revision ID: james.westby@ubuntu.com-20040204014212-ek9533qvd2vo1wa1
Tags: upstream-1.5.0
ImportĀ upstreamĀ versionĀ 1.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * options_main.mod
 
4
 * ----------------
 
5
 * Squirrelspell module
 
6
 * Copyright (c) 1999-2003 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: options_main.mod,v 1.3 2002/12/31 12:49:40 kink Exp $
 
12
 *
 
13
 * @author Konstantin Riabitsev <icon@duke.edu> ($Author: kink $)
 
14
 * @version $Date: 2002/12/31 12:49:40 $
 
15
 */
 
16
    
 
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
 */
 
56
?>