- Fix MagicHTML fix with respect to parsing of u\rl in IE.
[squirrelmail.git] / functions / db_prefs.php
index 63db4a26186c6bec9112e4ea56e7fb0148db4a43..a1ee7178a8b093bfdbec9d9f64603f9748a5eafc 100644 (file)
@@ -3,14 +3,10 @@
 /**
  * db_prefs.php
  *
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * This contains functions for manipulating user preferences
  * stored in a database, accessed though the Pear DB layer.
  *
  * Database:
- * ---------
  *
  * The preferences table should have three columns:
  *    user       char  \  primary
@@ -25,6 +21,8 @@
  * Configuration of databasename, username and password is done
  * by using conf.pl or the administrator plugin
  *
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage prefs
@@ -296,7 +294,8 @@ class dbPrefs {
          */
         if (strlen($user) > $this->user_size) {
             $this->error = "Oversized username value."
-                ." User's preferences can't be saved. See doc/db-backend.txt troubleshooting documentation.";
+                ." Your preferences can't be saved."
+                ." See doc/db-backend.txt or contact your system administrator.";
 
             /**
              * Debugging function. Can be used to log all issues that trigger 
@@ -313,7 +312,8 @@ class dbPrefs {
          */
         if (strlen($key) > $this->key_size) {
             $err_msg = "Oversized user's preference key."
-                ." Some user preferences are not saved. See doc/db-backend.txt troubleshooting documentation.";
+                ." Some preferences were not saved."
+                ." See doc/db-backend.txt or contact your system administrator.";
             // error is not fatal. Only some preference is not saved.
             trigger_error($err_msg,E_USER_WARNING);
             return false;
@@ -323,7 +323,8 @@ class dbPrefs {
          */
         if (strlen($value) > $this->val_size) {
             $err_msg = "Oversized user's preference value."
-                ." Some user preferences are not saved. See doc/db-backend.txt troubleshooting documentation.";
+                ." Some preferences were not saved."
+                ." See doc/db-backend.txt or contact your system administrator.";
             // error is not fatal. Only some preference is not saved.
             trigger_error($err_msg,E_USER_WARNING);
             return false;