thomascube
2011-12-07 0706075d85e3a59e8a1f5ba2187701a278ecf88a
commit | author | age
4e17e6 1 <?php
T 2
3 /*
4  +-----------------------------------------------------------------------+
5  | Configuration file for database access                                |
6  |                                                                       |
e019f2 7  | This file is part of the Roundcube Webmail client                     |
f5e7b3 8  | Copyright (C) 2005-2009, The Roundcube Dev Team                       |
52c1f2 9  | Licensed under the GNU GPL                                            |
4e17e6 10  |                                                                       |
T 11  +-----------------------------------------------------------------------+
12
13 */
14
15 $rcmail_config = array();
16
1676e1 17 // PEAR database DSN for read/write operations
34eab0 18 // format is db_provider://user:password@host/database 
fafe5d 19 // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
2273d4 20 // currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql or sqlsrv
4e17e6 21
1676e1 22 $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
1cded8 23 // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
fafe5d 24 // Warning: for SQLite use absolute path in DSN:
A 25 // sqlite example: 'sqlite:////full/path/to/sqlite.db?mode=0646';
4e17e6 26
1676e1 27 // PEAR database DSN for read only operations (if empty write database will be used)
7cc38e 28 // useful for database replication
1676e1 29 $rcmail_config['db_dsnr'] = '';
4e17e6 30
1cded8 31 // maximum length of a query in bytes
T 32 $rcmail_config['db_max_length'] = 512000;  // 500K
f45ec7 33
93ee83 34 // use persistent db-connections
e64fe0 35 // beware this will not "always" work as expected
T 36 // see: http://www.php.net/manual/en/features.persistent-connections.php
3cb42e 37 $rcmail_config['db_persistent'] = FALSE;
93ee83 38
T 39
4e17e6 40 // you can define specific table names used to store webmail data
T 41 $rcmail_config['db_table_users'] = 'users';
42 $rcmail_config['db_table_identities'] = 'identities';
43 $rcmail_config['db_table_contacts'] = 'contacts';
a61bbb 44 $rcmail_config['db_table_contactgroups'] = 'contactgroups';
T 45 $rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers';
4e17e6 46 $rcmail_config['db_table_session'] = 'session';
T 47 $rcmail_config['db_table_cache'] = 'cache';
1991b7 48 $rcmail_config['db_table_cache_index'] = 'cache_index';
A 49 $rcmail_config['db_table_cache_thread'] = 'cache_thread';
50 $rcmail_config['db_table_cache_messages'] = 'cache_messages';
1cded8 51
T 52
53 // you can define specific sequence names used in PostgreSQL
54 $rcmail_config['db_sequence_users'] = 'user_ids';
55 $rcmail_config['db_sequence_identities'] = 'identity_ids';
56 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
22d6b5 57 $rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids';
1cded8 58 $rcmail_config['db_sequence_cache'] = 'cache_ids';
f8e48d 59 $rcmail_config['db_sequence_searches'] = 'search_ids';
A 60
4e17e6 61
T 62 // end db config file
b25dfd 63