Skip to content
Newer
Older
100644 67 lines (51 sloc) 2.82 KB
4e17e6c @thomascube Initial revision
thomascube authored
1 <?php
2
3 /*
4 +-----------------------------------------------------------------------+
5 | Configuration file for database access |
6 | |
e019f2d @alecpl - s/RoundCube/Roundcube/
alecpl authored
7 | This file is part of the Roundcube Webmail client |
f5e7b35 @thomascube Bumbed version; Roundcube development is not Switzerland only
thomascube authored
8 | Copyright (C) 2005-2009, The Roundcube Dev Team |
7fe3811 @thomascube Changed license to GNU GPLv3+ with exceptions for skins and plugins
thomascube authored
9 | |
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. |
4e17e6c @thomascube Initial revision
thomascube authored
13 | |
14 +-----------------------------------------------------------------------+
15
16 */
17
18 $rcmail_config = array();
19
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
20 // PEAR database DSN for read/write operations
34eab04 @till * fixing spelling errors reported in #1484885
till authored
21 // format is db_provider://user:password@host/database
fafe5dc @alecpl - added comments to set absolute path for SQLite DSN (#1486095)
alecpl authored
22 // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
2273d41 @alecpl - Add support for MDB2's 'sqlsrv' driver (#1486395)
alecpl authored
23 // currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql or sqlsrv
4e17e6c @thomascube Initial revision
thomascube authored
24
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
25 $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
26 // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
fafe5dc @alecpl - added comments to set absolute path for SQLite DSN (#1486095)
alecpl authored
27 // Warning: for SQLite use absolute path in DSN:
28 // sqlite example: 'sqlite:////full/path/to/sqlite.db?mode=0646';
4e17e6c @thomascube Initial revision
thomascube authored
29
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
30 // PEAR database DSN for read only operations (if empty write database will be used)
7cc38e0 @thomascube Added Finnish, Romanian and Chinese translation
thomascube authored
31 // useful for database replication
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
32 $rcmail_config['db_dsnr'] = '';
4e17e6c @thomascube Initial revision
thomascube authored
33
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
34 // maximum length of a query in bytes
35 $rcmail_config['db_max_length'] = 512000; // 500K
36
93ee836 @thomascube Make persistent DB connections configurable
thomascube authored
37 // use persistent db-connections
e64fe07 @till # ERRATA r783 : of course persistant connections are disabled by defa…
till authored
38 // beware this will not "always" work as expected
39 // see: http://www.php.net/manual/en/features.persistent-connections.php
3cb42ef @till * switched to persistant connections
till authored
40 $rcmail_config['db_persistent'] = FALSE;
93ee836 @thomascube Make persistent DB connections configurable
thomascube authored
41
42
4e17e6c @thomascube Initial revision
thomascube authored
43 // you can define specific table names used to store webmail data
44 $rcmail_config['db_table_users'] = 'users';
45 $rcmail_config['db_table_identities'] = 'identities';
46 $rcmail_config['db_table_contacts'] = 'contacts';
a61bbb2 @thomascube Added basic contact groups feature
thomascube authored
47 $rcmail_config['db_table_contactgroups'] = 'contactgroups';
48 $rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers';
4e17e6c @thomascube Initial revision
thomascube authored
49 $rcmail_config['db_table_session'] = 'session';
50 $rcmail_config['db_table_cache'] = 'cache';
1991b77 @alecpl - Add db_table_* config for new cache tables (#1488105)
alecpl authored
51 $rcmail_config['db_table_cache_index'] = 'cache_index';
52 $rcmail_config['db_table_cache_thread'] = 'cache_thread';
53 $rcmail_config['db_table_cache_messages'] = 'cache_messages';
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
54
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';
22d6b53 @alecpl - contactgroups DDL for postgres
alecpl authored
60 $rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids';
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
61 $rcmail_config['db_sequence_cache'] = 'cache_ids';
f8e48df @alecpl - Merge devel-saved_search branch (Addressbook Saved Searches)
alecpl authored
62 $rcmail_config['db_sequence_searches'] = 'search_ids';
63
4e17e6c @thomascube Initial revision
thomascube authored
64
65 // end db config file
b25dfd0 @alecpl - removed PHP closing tag
alecpl authored
66
Something went wrong with that request. Please try again.