thomascube
2006-09-04 2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21
commit | author | age
4e17e6 1 <?php
T 2
3 /*
4  +-----------------------------------------------------------------------+
5  | Configuration file for database access                                |
6  |                                                                       |
7  | This file is part of the RoundCube Webmail client                     |
8  | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
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
42b113 18 // format is db_provider://user:password@host/databse
7902df 19 // currentyl suported db_providers: mysql, sqlite
4e17e6 20
1676e1 21 $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
1cded8 22 // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
42b113 23 // sqlite example: 'sqlite://./sqlite.db?mode=0646';
4e17e6 24
1676e1 25 // PEAR database DSN for read only operations (if empty write database will be used)
7cc38e 26 // useful for database replication
1676e1 27 $rcmail_config['db_dsnr'] = '';
4e17e6 28
f45ec7 29 // database backend to use (only db or mdb2 are supported)
S 30 $rcmail_config['db_backend'] = 'db';
1cded8 31
T 32 // maximum length of a query in bytes
33 $rcmail_config['db_max_length'] = 512000;  // 500K
f45ec7 34
93ee83 35 // use persistent db-connections
T 36 $rcmail_config['db_persistent'] = TRUE;
37
38
4e17e6 39 // you can define specific table names used to store webmail data
T 40 $rcmail_config['db_table_users'] = 'users';
41
42 $rcmail_config['db_table_identities'] = 'identities';
43
44 $rcmail_config['db_table_contacts'] = 'contacts';
45
46 $rcmail_config['db_table_session'] = 'session';
47
48 $rcmail_config['db_table_cache'] = 'cache';
49
1cded8 50 $rcmail_config['db_table_messages'] = 'messages';
T 51
52
53 // you can define specific sequence names used in PostgreSQL
54 $rcmail_config['db_sequence_users'] = 'user_ids';
55
56 $rcmail_config['db_sequence_identities'] = 'identity_ids';
57
58 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
59
60 $rcmail_config['db_sequence_cache'] = 'cache_ids';
61
62 $rcmail_config['db_sequence_messages'] = 'message_ids';
63
4e17e6 64
T 65 // end db config file
6e4985 66 ?>