sqspell_functions.php ---------------------- All SquirrelSpell-wide functions are in this file.
Copyright (c) 1999-2020 The SquirrelMail Project Team Licensed under the GNU GPL. For full terms see the file COPYING.
This function checks for security attacks. A $MOD variable is
provided in the QUERY_STRING and includes one of the files from the modules directory ($MOD.mod). See if someone is trying to get out of the modules directory by providing dots, unicode strings, or slashes.
This function does the encryption and decryption of the user dictionary. It is only available when PHP is compiled with mcrypt support (--with-mcrypt). See doc/CRYPTO for more information.
This function returns only user-defined dictionary words that correspond to the requested language.
Right now it just returns an array with the dictionaries available to the user for spell-checking. It will probably do more in the future, as features are added.
This function operates the user dictionary. If the format is
clear-text, then it just reads the file and returns it. However, if the file is encrypted (well, "garbled"), then it tries to decrypt it, checks whether the decryption was successful, troubleshoots if not, then returns the clear-text dictionary to the app.
Creates an empty user dictionary for the sake of saving prefs or whatever.
This function is the GUI wrapper for the options page. SquirrelSpell uses it for creating all Options pages.
Function similar to the one above. This one is a general wrapper for the Squirrelspell pop-up window. It's called form nearly everywhere, except the check_me module, since that one is highly customized.
This function transparently upgrades the 0.2 dictionary format to the 0.3 format, since user-defined languages have been added in 0.3 and the new format keeps user dictionaries selection in the file.
This function will be retired soon, as it's been a while since anyone has been using SquirrelSpell-0.2.
Writes user dictionary into the $username.words file, then changes mask to 0600. If encryption is needed -- does that, too.
Documentation generated on Mon, 13 Jan 2020 04:25:21 +0100 by phpDocumentor 1.4.3