X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fmodules%2Fenc_setup.mod.php;h=411b544ab084dd7b4d32004be9c07b83b71c6b32;hp=b70050a3fe8909e55fe15c747f65a89661241fba;hb=2b5a715784c5414a95c4eba8b20e3dd47f45131b;hpb=48a8f454eb431c08105a90fc92c720d406e2d8f1 diff --git a/plugins/squirrelspell/modules/enc_setup.mod.php b/plugins/squirrelspell/modules/enc_setup.mod.php index b70050a3..411b544a 100644 --- a/plugins/squirrelspell/modules/enc_setup.mod.php +++ b/plugins/squirrelspell/modules/enc_setup.mod.php @@ -1,53 +1,66 @@ Your personal dictionary is currently encrypted. This - helps protect your privacy in case the web-mail system gets compromized and your - personal dictionary ends up stolen. It is currently encrypted with the password - you use to access your mailbox, making it hard for anyone to see what is stored - in your personal dictionary.

-

ATTENTION: If you forget your password, your personal dictionary - will become unaccessible, since it can no longer be decrypted. - If you change your mailbox password, SquirrelSpell will recognize it and prompt you for - your old password in order to re-encrypt the dictionary with a new key.

-
- -

Please decrypt my personal - dictionary and store it in a clear-text format.

-

-
- "; -} else { - // current format is clear text. - $msg = "

Your personal dictionary is currently not encrypted. - You may wish to encrypt your personal dictionary to protect your privacy in case - the webmail system gets compromized and your personal dictionary file gets stolen. - When encrypted, the file's contents look garbled and are hard to decrypt without - knowing the correct key (which is your mailbox password).

- ATTENTION: If you decide to encrypt your personal dictionary, - you must remember that it gets "hashed" with your mailbox password. If - you forget your mailbox password and the administrator changes it to a new value, - your personal dictionary will become useless and will have to be created anew. - However, if you or your system administrator change your mailbox password but you - still have the old password at hand, you will be able to enter the old key to - re-encrypt the dictionary with the new value.

-
- -

Please encrypt my personal - dictionary and store it in an encrypted format.

-

-
- "; -} - sqspell_makePage("Personal Dictionary Crypto Settings", "crypto_settings.js", $msg); -?> + /** + ** ENC_SETUP.MOD.PHP -- Squirrelspell module + ** + ** Copyright (c) 1999-2001 The SquirrelMail development team + ** Licensed under the GNU GPL. For full terms see the file COPYING. + ** + ** This module shows the user a nice invitation to encrypt or decypt + ** his/her personal dictionary and explains the caveats of such a decision. + ** + ** $Id$ + **/ + + // Something for our friends with E_ALL for error_reporting: + global $SQSPELL_CRYPTO; + + $words=sqspell_getWords(); + if ($SQSPELL_CRYPTO){ + // Current format is encrypted. + $msg = + _("

Your personal dictionary is currently encrypted. This " + "helps protect your privacy in case the web-mail system gets compromized and your " + "personal dictionary ends up stolen. It is currently encrypted with the password " + "you use to access your mailbox, making it hard for anyone to see what is stored " + "in your personal dictionary.

" + "

ATTENTION: If you forget your password, your personal dictionary " + "will become unaccessible, since it can no longer be decrypted. " + "If you change your mailbox password, SquirrelSpell will recognize it and prompt you for " + "your old password in order to re-encrypt the dictionary with a new key.

") . + '
'. + ''. + '

'. + _("Please decrypt my personal dictionary and store it in a clear-text format." ) . + '

'. + '

'. + '
'; + } else { + // current format is clear text. + $msg = + _("

Your personal dictionary is currently not encrypted. " + "You may wish to encrypt your personal dictionary to protect your privacy in case " + "the webmail system gets compromized and your personal dictionary file gets stolen. " + "When encrypted, the file's contents look garbled and are hard to decrypt without " + "knowing the correct key (which is your mailbox password).

" + "ATTENTION: If you decide to encrypt your personal dictionary, " + "you must remember that it gets "hashed" with your mailbox password. If " + "you forget your mailbox password and the administrator changes it to a new value, " + "your personal dictionary will become useless and will have to be created anew. " + "However, if you or your system administrator change your mailbox password but you " + "still have the old password at hand, you will be able to enter the old key to " + "re-encrypt the dictionary with the new value.

"). + '
'. + ''. + '

'. + _("Please encrypt my personal dictionary and store it in an encrypted format.") . + '

'. + '

'. + '
'; + } + sqspell_makePage(_("Personal Dictionary Crypto Settings"), "crypto_settings.js", $msg); + +?> \ No newline at end of file