X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_config.php;h=e4ec0f8843d9cb9666d82046621e23dbc42f968b;hb=ea5f4b8eaf805c4cc4e9533e87d057300a7fe666;hp=8d2fedce8c11d45774a62cdb630ba693f939eb50;hpb=8a9f9d0964e91d21ffd490b105a011687d8c729f;p=squirrelmail.git diff --git a/plugins/squirrelspell/sqspell_config.php b/plugins/squirrelspell/sqspell_config.php index 8d2fedce..e4ec0f88 100644 --- a/plugins/squirrelspell/sqspell_config.php +++ b/plugins/squirrelspell/sqspell_config.php @@ -2,24 +2,23 @@ /** * sqspell_config.php -- SquirrelSpell Configuration file. * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * * * $Id$ + * @package plugins + * @subpackage squirrelspell */ +/** */ require_once(SM_PATH . 'functions/prefs.php'); /* Just for poor wretched souls with E_ALL. :) */ global $data_dir; -if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) { - global $_SESSION; -} - -$username = $_SESSION['username']; +sqgetGlobalVar('username', $username, SQ_SESSION); /** * Example: @@ -34,7 +33,5 @@ $SQSPELL_WORDS_FILE = getHashedFile($username, $data_dir, "$username.words"); $SQSPELL_EREG = 'ereg'; -#$SQSPELL_SOUP_NAZI = 'Mozilla/3, Mozilla/2, Opera 4, Opera/4, ' -# . 'Macintosh, OmniWeb'; ?>