Internationalization
[squirrelmail.git] / plugins / squirrelspell / modules / enc_setup.mod.php
CommitLineData
849bdf42 1<?php
849bdf42 2
2b5a7157 3 /**
4 ** ENC_SETUP.MOD.PHP -- Squirrelspell module
5 **
6 ** Copyright (c) 1999-2001 The SquirrelMail development team
7 ** Licensed under the GNU GPL. For full terms see the file COPYING.
8 **
9 ** This module shows the user a nice invitation to encrypt or decypt
10 ** his/her personal dictionary and explains the caveats of such a decision.
11 **
12 ** $Id$
13 **/
14
15 // Something for our friends with E_ALL for error_reporting:
16 global $SQSPELL_CRYPTO;
17
18 $words=sqspell_getWords();
19 if ($SQSPELL_CRYPTO){
20 // Current format is encrypted.
21 $msg =
22 _("<p>Your personal dictionary is <strong>currently encrypted</strong>. This "
23 "helps protect your privacy in case the web-mail system gets compromized and your "
24 "personal dictionary ends up stolen. It is currently encrypted with the password "
25 "you use to access your mailbox, making it hard for anyone to see what is stored "
26 "in your personal dictionary.</p> "
27 "<p><strong>ATTENTION:</strong> If you forget your password, your personal dictionary "
28 "will become unaccessible, since it can no longer be decrypted. "
29 "If you change your mailbox password, SquirrelSpell will recognize it and prompt you for "
30 "your old password in order to re-encrypt the dictionary with a new key.</p>") .
31 '<form method="post" onsubmit="return checkMe()">'.
32 '<input type="hidden" name="MOD" value="crypto">'.
33 '<p align="center"><input type="checkbox" name="action" value="decrypt"> '.
34 _("Please decrypt my personal dictionary and store it in a clear-text format." ) .
35 '</p>'.
36 '<p align="center"><input type="submit" value=" ' .
37 _("Change crypto settings") .
38 ' "></p>'.
39 '</form>';
40 } else {
41 // current format is clear text.
42 $msg =
43 _("<p>Your personal dictionary is <strong>currently not encrypted</strong>. "
44 "You may wish to encrypt your personal dictionary to protect your privacy in case "
45 "the webmail system gets compromized and your personal dictionary file gets stolen. "
46 "When encrypted, the file's contents look garbled and are hard to decrypt without "
47 "knowing the correct key (which is your mailbox password).</p> "
48 "<strong>ATTENTION:</strong> If you decide to encrypt your personal dictionary, "
49 "you must remember that it gets &quot;hashed&quot; with your mailbox password. If "
50 "you forget your mailbox password and the administrator changes it to a new value, "
51 "your personal dictionary will become useless and will have to be created anew. "
52 "However, if you or your system administrator change your mailbox password but you "
53 "still have the old password at hand, you will be able to enter the old key to "
54 "re-encrypt the dictionary with the new value.</p>").
55 '<form method="post" onsubmit="return checkMe()">'.
56 '<input type="hidden" name="MOD" value="crypto">'.
57 '<p align="center"><input type="checkbox" name="action" value="encrypt"> '.
58 _("Please encrypt my personal dictionary and store it in an encrypted format.") .
59 '</p>'.
60 '<p align="center"><input type="submit" value=" '.
61 _("Change crypto settings") . ' "></p>'.
62 '</form>';
63 }
64 sqspell_makePage(_("Personal Dictionary Crypto Settings"), "crypto_settings.js", $msg);
65
66?>