Replacing tabs with spaces, trimming white space at EOL and newline at EOF
[squirrelmail.git] / plugins / squirrelspell / sqspell_config.php
index 8d2fedce8c11d45774a62cdb630ba693f939eb50..1eae37c85ee1feac1b0e0645f8836fcfe5be9136 100644 (file)
@@ -2,24 +2,23 @@
 /**
  * sqspell_config.php -- SquirrelSpell Configuration file.
  *
 /**
  * sqspell_config.php -- SquirrelSpell Configuration file.
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  *
  *
  * $Id$
  * 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;
 
 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:
 
 /**
  * Example:
@@ -28,13 +27,11 @@ $username = $_SESSION['username'];
  *                     'Spanish' => 'ispell -d spanish -a' );
  */
 $SQSPELL_APP = array('English' => 'ispell -a',
  *                     'Spanish' => 'ispell -d spanish -a' );
  */
 $SQSPELL_APP = array('English' => 'ispell -a',
-                       'Spanish' => 'ispell -d spanish -a');
+                        'Spanish' => 'ispell -d spanish -a');
 $SQSPELL_APP_DEFAULT = 'English';
 $SQSPELL_APP_DEFAULT = 'English';
-$SQSPELL_WORDS_FILE = 
+$SQSPELL_WORDS_FILE =
    getHashedFile($username, $data_dir, "$username.words");
 
 $SQSPELL_EREG = 'ereg';
    getHashedFile($username, $data_dir, "$username.words");
 
 $SQSPELL_EREG = 'ereg';
-#$SQSPELL_SOUP_NAZI = 'Mozilla/3, Mozilla/2, Opera 4, Opera/4, '
-#   . 'Macintosh, OmniWeb';
 
 
-?>
+?>
\ No newline at end of file