ff139b5deb22c63b86d2e1619ff642bbf1211454
4 * sqspell_config.php -- SquirrelSpell Configuration file.
6 * @copyright © 1999-2006 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @subpackage squirrelspell
14 if (! defined('SM_PATH')) define('SM_PATH','../../');
16 /** getHashedFile() function for SQSPELL_WORDS_FILE and sqgetGlobalVar() from global.php */
17 include_once(SM_PATH
. 'functions/prefs.php');
19 /** vars needed for getHashedFile() */
21 sqgetGlobalVar('username', $username, SQ_SESSION
);
24 * List of configured dictionaries
26 * This feature was added/changed in 0.3. Use this array to set up
27 * which dictionaries are available to users. If you only have
28 * English spellchecker on your system, then let this line be:
30 * $SQSPELL_APP = array('English' => 'ispell -a');
32 * $SQSPELL_APP = array('English' => '/usr/local/bin/aspell -a');
34 * Sometimes you have to specify full path for PHP to find it.
36 * You can use Aspell or Ispell spellcheckers, the command line is the
37 * same. Aspell might provide better spellchecking for Western languages.
39 * If you want to have more than one dictionary available to users,
40 * configure the array to look something like this:
42 * $SQSPELL_APP = array('English' => 'aspell -a',
43 * 'Russian' => 'ispell -d russian -a',
45 * 'Swahili' => 'ispell -d swahili -a'
50 * <li>Watch the commas, making sure there isn't one after your last
51 * dictionary declaration. Also, make sure all these dictionaries
52 * are available on your system before you specify them here.</li>
53 * <li>Whatever your setting is, don't omit the "-a" flag.</li>
54 * <li>Remember to keep same array keys during upgrades. Don't rename them.
55 * Users' dictionary settings use it.</li>
56 * <li>Interface might translate array key, if used key is present in
57 * SquirrelMail translations.</li>
61 * $SQSPELL_APP = array('English' => 'ispell -a',
62 * 'Spanish' => 'ispell -d spanish -a' );
65 * @global array $SQSPELL_APP
67 $SQSPELL_APP = array('English' => 'ispell -a',
68 'Spanish' => 'ispell -d spanish -a');
72 * @global string $SQSPELL_APP_DEFAULT
74 $SQSPELL_APP_DEFAULT = 'English';
77 * File that stores user's dictionary
79 * $SQSPELL_WORDS_FILE is a location and mask of a user dictionary file.
80 * The default setting should be OK for most everyone.
82 * This setting is used only when SquirrelSpell is upgraded from
83 * older setup. Since SquirrelMail 1.5.1 SquirrelSpell stores all settings in
84 * same place that stores other SquirrelMail user preferences.
85 * @global string $SQSPELL_WORDS_FILE
86 * @deprecated setting is still needed in order to handle upgrades
89 getHashedFile($username, $data_dir, "$username.words");
92 * Function used for checking words in user's dictionary
93 * @global string $SQSPELL_EREG
94 * @deprecated It is not used since 1.5.1 (sqspell 0.5)
96 $SQSPELL_EREG = 'ereg';