XHTML fixes
[squirrelmail.git] / plugins / squirrelspell / sqspell_config.php
index ef018d5ed89c21d642af84a07a8f274b3a1dd5b3..29508eb4572cc1885f7eabfe50eb373b0f41cc5e 100644 (file)
@@ -1,27 +1,37 @@
 <?php
+/**
+ * sqspell_config.php -- SquirrelSpell Configuration file.
+ *
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ *
+ *
+ * $Id$
+ * @package plugins
+ * @subpackage squirrelspell
+ */
 
-   /**
-    * sqspell_config.php -- SquirrelSpell Configuration file.
-    *
-    *  Copyright (c) 1999-2001 The SquirrelMail Development Team
-    *  Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *
-    *
-    * $Id$
-    */
+/** */
+require_once(SM_PATH . 'functions/prefs.php');
 
-    require_once('../functions/prefs.php');
+/* Just for poor wretched souls with E_ALL. :) */
+global $data_dir;
 
-    /* Just for poor wretched souls with E_ALL. :) */
-    global $username, $data_dir;
+sqgetGlobalVar('username', $username, SQ_SESSION);
 
-    $SQSPELL_APP = array( 'English' => 'ispell -a',
-                          'Spanish' => 'ispell -d spanish -a' );
-    $SQSPELL_APP_DEFAULT = 'English';
-    $SQSPELL_WORDS_FILE = 
-        getHashedFile($username, $data_dir, "$username.words");
-    $SQSPELL_EREG = 'ereg';
-    $SQSPELL_SOUP_NAZI = 'Mozilla/3, Mozilla/2, Opera 4, Opera/4, Macintosh';
+/**
+ * Example:
+ *
+ * $SQSPELL_APP = array( 'English' => 'ispell -a',
+ *                     'Spanish' => 'ispell -d spanish -a' );
+ */
+$SQSPELL_APP = array('English' => 'ispell -a',
+                       'Spanish' => 'ispell -d spanish -a');
+$SQSPELL_APP_DEFAULT = 'English';
+$SQSPELL_WORDS_FILE = 
+   getHashedFile($username, $data_dir, "$username.words");
+
+$SQSPELL_EREG = 'ereg';
 
 ?>