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 | |
cbbef3
|
8 |
| Copyright (C) 2005-2009, 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 |
34eab0
|
18 |
// format is db_provider://user:password@host/database |
033155
|
19 |
// currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql |
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 |
|
1cded8
|
29 |
// maximum length of a query in bytes |
T |
30 |
$rcmail_config['db_max_length'] = 512000; // 500K |
f45ec7
|
31 |
|
93ee83
|
32 |
// use persistent db-connections |
e64fe0
|
33 |
// beware this will not "always" work as expected |
T |
34 |
// see: http://www.php.net/manual/en/features.persistent-connections.php |
3cb42e
|
35 |
$rcmail_config['db_persistent'] = FALSE; |
93ee83
|
36 |
|
T |
37 |
|
4e17e6
|
38 |
// you can define specific table names used to store webmail data |
T |
39 |
$rcmail_config['db_table_users'] = 'users'; |
|
40 |
|
|
41 |
$rcmail_config['db_table_identities'] = 'identities'; |
|
42 |
|
|
43 |
$rcmail_config['db_table_contacts'] = 'contacts'; |
|
44 |
|
|
45 |
$rcmail_config['db_table_session'] = 'session'; |
|
46 |
|
|
47 |
$rcmail_config['db_table_cache'] = 'cache'; |
|
48 |
|
1cded8
|
49 |
$rcmail_config['db_table_messages'] = 'messages'; |
T |
50 |
|
|
51 |
|
|
52 |
// you can define specific sequence names used in PostgreSQL |
|
53 |
$rcmail_config['db_sequence_users'] = 'user_ids'; |
|
54 |
|
|
55 |
$rcmail_config['db_sequence_identities'] = 'identity_ids'; |
|
56 |
|
|
57 |
$rcmail_config['db_sequence_contacts'] = 'contact_ids'; |
|
58 |
|
|
59 |
$rcmail_config['db_sequence_cache'] = 'cache_ids'; |
|
60 |
|
|
61 |
$rcmail_config['db_sequence_messages'] = 'message_ids'; |
|
62 |
|
4e17e6
|
63 |
|
T |
64 |
// end db config file |
5349b7
|
65 |
?> |