Allow easy selection of database backed prefs
[squirrelmail.git] / config / config_default.php
index 309cc5c7a2bb6b2835ed1d141f6382bcc29085f7..e4c761cb537b9d9d408aa1ebddddace9236c5970 100644 (file)
@@ -376,11 +376,19 @@ global $ldap_server;
  * Database-driven private addressbooks
  *   DSN (Data Source Name) for a database where the private
  *   addressbooks are stored.  See doc/db-backend.txt for more info.
- *   If it is not defined, the addressbooks are stored in files
+ *   If it is not set, the addressbooks are stored in files
  *   in the data dir.
+ *   The DSN is in the format: mysql://user:pass@hostname/dbname
+ *   The table is the name of the table to use within the
+ *   specified database.
  */
-#global $addrbook_dsn;
-#$addrbook_dsn = 'mysql://user:pass@hostname/dbname';
+global $addrbook_dsn, $addrbook_table;
+$addrbook_dsn = '';
+$addrbook_table = 'address';
+
+global $prefs_dsn, $prefs_table;
+$prefs_dsn = '';
+$prefs_table = 'userprefs'
 
 /**
  * Users may search their addressbook via either a plain HTML or Javascript