Thomas Bruederli
2013-02-10 6b5e31f0afb393397c20b03c312a8357dc472692
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                     |
8bfef1 8  | Copyright (C) 2005-2012, The Roundcube Dev Team                       |
7fe381 9  |                                                                       |
T 10  | Licensed under the GNU General Public License version 3 or            |
11  | any later version with exceptions for skins & plugins.                |
12  | See the README file for a full license statement.                     |
4e17e6 13  |                                                                       |
T 14  +-----------------------------------------------------------------------+
15
16 */
17
18 $rcmail_config = array();
19
1676e1 20 // PEAR database DSN for read/write operations
34eab0 21 // format is db_provider://user:password@host/database 
fafe5d 22 // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
2273d4 23 // currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql or sqlsrv
4e17e6 24
1676e1 25 $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
1cded8 26 // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
fafe5d 27 // Warning: for SQLite use absolute path in DSN:
A 28 // sqlite example: 'sqlite:////full/path/to/sqlite.db?mode=0646';
4e17e6 29
1676e1 30 // PEAR database DSN for read only operations (if empty write database will be used)
7cc38e 31 // useful for database replication
1676e1 32 $rcmail_config['db_dsnr'] = '';
4e17e6 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
4e17e6 39 // you can define specific table names used to store webmail data
T 40 $rcmail_config['db_table_users'] = 'users';
41 $rcmail_config['db_table_identities'] = 'identities';
42 $rcmail_config['db_table_contacts'] = 'contacts';
a61bbb 43 $rcmail_config['db_table_contactgroups'] = 'contactgroups';
T 44 $rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers';
4e17e6 45 $rcmail_config['db_table_session'] = 'session';
T 46 $rcmail_config['db_table_cache'] = 'cache';
1991b7 47 $rcmail_config['db_table_cache_index'] = 'cache_index';
A 48 $rcmail_config['db_table_cache_thread'] = 'cache_thread';
49 $rcmail_config['db_table_cache_messages'] = 'cache_messages';
8bfef1 50 $rcmail_config['db_table_dictionary'] = 'dictionary';
AM 51 $rcmail_config['db_table_searches'] = 'searches';
c10187 52 $rcmail_config['db_table_system'] = 'system';
1cded8 53
T 54 // you can define specific sequence names used in PostgreSQL
55 $rcmail_config['db_sequence_users'] = 'user_ids';
56 $rcmail_config['db_sequence_identities'] = 'identity_ids';
57 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
22d6b5 58 $rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids';
f8e48d 59 $rcmail_config['db_sequence_searches'] = 'search_ids';
A 60
4e17e6 61
T 62 // end db config file