Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 68 lines (44 sloc) 2.339 kb
4e17e6c @thomascube Initial revision
thomascube authored
1 <?php
2
3 /*
4 +-----------------------------------------------------------------------+
5 | Configuration file for database access |
6 | |
7 | This file is part of the RoundCube Webmail client |
cbbef37 @till * bumping up copyright (happy new year ;-))
till authored
8 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland |
52c1f28 @thomascube Minor bugfixes and SMTP support
thomascube authored
9 | Licensed under the GNU GPL |
4e17e6c @thomascube Initial revision
thomascube authored
10 | |
11 +-----------------------------------------------------------------------+
12
13 */
14
15 $rcmail_config = array();
16
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
17 // PEAR database DSN for read/write operations
34eab04 @till * fixing spelling errors reported in #1484885
till authored
18 // format is db_provider://user:password@host/database
fafe5dc @alecpl - added comments to set absolute path for SQLite DSN (#1486095)
alecpl authored
19 // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
033155a @thomascube Update the list of supported databases
thomascube authored
20 // currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql
4e17e6c @thomascube Initial revision
thomascube authored
21
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
22 $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
23 // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
fafe5dc @alecpl - added comments to set absolute path for SQLite DSN (#1486095)
alecpl authored
24 // Warning: for SQLite use absolute path in DSN:
25 // sqlite example: 'sqlite:////full/path/to/sqlite.db?mode=0646';
4e17e6c @thomascube Initial revision
thomascube authored
26
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
27 // PEAR database DSN for read only operations (if empty write database will be used)
7cc38e0 @thomascube Added Finnish, Romanian and Chinese translation
thomascube authored
28 // useful for database replication
1676e1e Added PEAR:DB support plus database replication support
svncommit authored
29 $rcmail_config['db_dsnr'] = '';
4e17e6c @thomascube Initial revision
thomascube authored
30
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
31 // maximum length of a query in bytes
32 $rcmail_config['db_max_length'] = 512000; // 500K
33
93ee836 @thomascube Make persistent DB connections configurable
thomascube authored
34 // use persistent db-connections
e64fe07 @till # ERRATA r783 : of course persistant connections are disabled by defa…
till authored
35 // beware this will not "always" work as expected
36 // see: http://www.php.net/manual/en/features.persistent-connections.php
3cb42ef @till * switched to persistant connections
till authored
37 $rcmail_config['db_persistent'] = FALSE;
93ee836 @thomascube Make persistent DB connections configurable
thomascube authored
38
39
4e17e6c @thomascube Initial revision
thomascube authored
40 // you can define specific table names used to store webmail data
41 $rcmail_config['db_table_users'] = 'users';
42
43 $rcmail_config['db_table_identities'] = 'identities';
44
45 $rcmail_config['db_table_contacts'] = 'contacts';
46
47 $rcmail_config['db_table_session'] = 'session';
48
49 $rcmail_config['db_table_cache'] = 'cache';
50
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
51 $rcmail_config['db_table_messages'] = 'messages';
52
53
54 // you can define specific sequence names used in PostgreSQL
55 $rcmail_config['db_sequence_users'] = 'user_ids';
56
57 $rcmail_config['db_sequence_identities'] = 'identity_ids';
58
59 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
60
61 $rcmail_config['db_sequence_cache'] = 'cache_ids';
62
63 $rcmail_config['db_sequence_messages'] = 'message_ids';
64
4e17e6c @thomascube Initial revision
thomascube authored
65
66 // end db config file
5349b78 Update copyright notice
svncommit authored
67 ?>
Something went wrong with that request. Please try again.