4 +-----------------------------------------------------------------------+
5 | Configuration file for database access |
7 | This file is part of the RoundCube Webmail client |
8 | Copyright (C) 2005, RoundCube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
11 +-----------------------------------------------------------------------+
15 $rcmail_config = array();
17 /* Do not set db_dsnw here, use dpkg-reconfigure roundcube to configure database ! */
19 include_once("/etc/roundcube/debian-db.php");
23 $rcmail_config['db_dsnw'] = "sqlite:///$basepath/$dbname?mode=0640";
26 if ($dbport != '') $dbport=":$dbport";
27 if ($dbserver == '') $dbserver="localhost";
28 $rcmail_config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver$dbport/$dbname";
32 // PEAR database DSN for read only operations (if empty write database will be used)
33 // useful for database replication
34 $rcmail_config['db_dsnr'] = '';
36 // database backend to use (only db or mdb2 are supported)
37 $rcmail_config['db_backend'] = 'db';
39 // maximum length of a query in bytes
40 $rcmail_config['db_max_length'] = 512000; // 500K
42 // use persistent db-connections
43 $rcmail_config['db_persistent'] = TRUE;
46 // you can define specific table names used to store webmail data
47 $rcmail_config['db_table_users'] = 'users';
49 $rcmail_config['db_table_identities'] = 'identities';
51 $rcmail_config['db_table_contacts'] = 'contacts';
53 $rcmail_config['db_table_session'] = 'session';
55 $rcmail_config['db_table_cache'] = 'cache';
57 $rcmail_config['db_table_messages'] = 'messages';
60 // you can define specific sequence names used in PostgreSQL
61 $rcmail_config['db_sequence_users'] = 'user_ids';
63 $rcmail_config['db_sequence_identities'] = 'identity_ids';
65 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
67 $rcmail_config['db_sequence_cache'] = 'cache_ids';
69 $rcmail_config['db_sequence_messages'] = 'message_ids';