Introduce a new function: check_php_version(4,1,2) which reports if this install
[squirrelmail.git] / plugins / squirrelspell / sqspell_config.php
CommitLineData
849bdf42 1<?php
d112ed5a 2/**
3 * sqspell_config.php -- SquirrelSpell Configuration file.
4 *
5 * Copyright (c) 1999-2002 The SquirrelMail Project Team
6 * Licensed under the GNU GPL. For full terms see the file COPYING.
7 *
8 *
9 *
10 * $Id$
11 */
849bdf42 12
cd7fc9e6 13require_once(SM_PATH . 'functions/prefs.php');
3392dc86 14
d112ed5a 15/* Just for poor wretched souls with E_ALL. :) */
8a9f9d09 16global $data_dir;
17
18if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
19 global $_SESSION;
20}
21
22$username = $_SESSION['username'];
849bdf42 23
d112ed5a 24/**
25 * Example:
26 *
27 * $SQSPELL_APP = array( 'English' => 'ispell -a',
28 * 'Spanish' => 'ispell -d spanish -a' );
29 */
2a917bbc 30$SQSPELL_APP = array('English' => 'ispell -a',
31 'Spanish' => 'ispell -d spanish -a');
d112ed5a 32$SQSPELL_APP_DEFAULT = 'English';
33$SQSPELL_WORDS_FILE =
34 getHashedFile($username, $data_dir, "$username.words");
849bdf42 35
d112ed5a 36$SQSPELL_EREG = 'ereg';
cd7fc9e6 37#$SQSPELL_SOUP_NAZI = 'Mozilla/3, Mozilla/2, Opera 4, Opera/4, '
38# . 'Macintosh, OmniWeb';
849bdf42 39
3392dc86 40?>