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 | |
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 |
|
1cded8
|
34 |
// maximum length of a query in bytes |
T |
35 |
$rcmail_config['db_max_length'] = 512000; // 500K |
f45ec7
|
36 |
|
93ee83
|
37 |
// use persistent db-connections |
e64fe0
|
38 |
// beware this will not "always" work as expected |
T |
39 |
// see: http://www.php.net/manual/en/features.persistent-connections.php |
3cb42e
|
40 |
$rcmail_config['db_persistent'] = FALSE; |
93ee83
|
41 |
|
T |
42 |
|
4e17e6
|
43 |
// you can define specific table names used to store webmail data |
T |
44 |
$rcmail_config['db_table_users'] = 'users'; |
|
45 |
$rcmail_config['db_table_identities'] = 'identities'; |
|
46 |
$rcmail_config['db_table_contacts'] = 'contacts'; |
a61bbb
|
47 |
$rcmail_config['db_table_contactgroups'] = 'contactgroups'; |
T |
48 |
$rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers'; |
4e17e6
|
49 |
$rcmail_config['db_table_session'] = 'session'; |
T |
50 |
$rcmail_config['db_table_cache'] = 'cache'; |
1991b7
|
51 |
$rcmail_config['db_table_cache_index'] = 'cache_index'; |
A |
52 |
$rcmail_config['db_table_cache_thread'] = 'cache_thread'; |
|
53 |
$rcmail_config['db_table_cache_messages'] = 'cache_messages'; |
1cded8
|
54 |
|
T |
55 |
|
|
56 |
// you can define specific sequence names used in PostgreSQL |
|
57 |
$rcmail_config['db_sequence_users'] = 'user_ids'; |
|
58 |
$rcmail_config['db_sequence_identities'] = 'identity_ids'; |
|
59 |
$rcmail_config['db_sequence_contacts'] = 'contact_ids'; |
22d6b5
|
60 |
$rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids'; |
1cded8
|
61 |
$rcmail_config['db_sequence_cache'] = 'cache_ids'; |
f8e48d
|
62 |
$rcmail_config['db_sequence_searches'] = 'search_ids'; |
A |
63 |
|
4e17e6
|
64 |
|
T |
65 |
// end db config file |
b25dfd
|
66 |
|