specfile
[plewww.git] / sites / default / settings.php
1 <?php
2 // $Id: settings.php 144 2007-03-28 07:52:20Z thierry $
3
4 /**
5  * @file
6  * Drupal site-specific configuration file.
7  *
8  * The configuration file to be loaded is based upon the rules below.
9  *
10  * The configuration directory will be discovered by stripping the
11  * website's hostname from left to right and pathname from right to
12  * left. The first configuration file found will be used and any
13  * others will be ignored. If no other configuration file is found
14  * then the default configuration file at 'sites/default' will be used.
15  *
16  * For example, for a fictitious site installed at
17  * http://www.drupal.org/mysite/test/, the 'settings.php'
18  * is searched in the following directories:
19  *
20  *  1. sites/www.drupal.org.mysite.test
21  *  2. sites/drupal.org.mysite.test
22  *  3. sites/org.mysite.test
23  *
24  *  4. sites/www.drupal.org.mysite
25  *  5. sites/drupal.org.mysite
26  *  6. sites/org.mysite
27  *
28  *  7. sites/www.drupal.org
29  *  8. sites/drupal.org
30  *  9. sites/org
31  *
32  * 10. sites/default
33  *
34  * If you are installing on a non-standard port number, prefix the
35  * hostname with that number.  For example,
36  * http://www.drupal.org:8080/mysite/test/ could be loaded from
37  * sites/8080.www.drupal.org.mysite.test/.
38  */
39
40 /**
41  * Database settings:
42  *
43  * Note that the $db_url variable gets parsed using PHP's built-in
44  * URL parser (i.e. using the "parse_url()" function) so make sure
45  * not to confuse the parser. If your username, password
46  * or database name contain characters used to delineate
47  * $db_url parts, you can escape them via URI hex encodings:
48  *
49  *   : = %3a   / = %2f   @ = %40
50  *   + = %2b   ( = %28   ) = %29
51  *   ? = %3f   = = %3d   & = %26
52  *
53  * To specify multiple connections to be used in your site (i.e. for
54  * complex custom modules) you can also specify an associative array
55  * of $db_url variables with the 'default' element used until otherwise
56  * requested.
57  *
58  * You can optionally set prefixes for some or all database table names
59  * by using the $db_prefix setting. If a prefix is specified, the table
60  * name will be prepended with its value. Be sure to use valid database
61  * characters only, usually alphanumeric and underscore. If no prefixes
62  * are desired, leave it as an empty string ''.
63  *
64  * To have all database names prefixed, set $db_prefix as a string:
65  *
66  *   $db_prefix = 'main_';
67  *
68  * To provide prefixes for specific tables, set $db_prefix as an array.
69  * The array's keys are the table names and the values are the prefixes.
70  * The 'default' element holds the prefix for any tables not specified
71  * elsewhere in the array. Example:
72  *
73  *   $db_prefix = array(
74  *     'default'   => 'main_',
75  *     'users'     => 'shared_',
76  *     'sessions'  => 'shared_',
77  *     'role'      => 'shared_',
78  *     'authmap'   => 'shared_',
79  *     'sequences' => 'shared_',
80  *   );
81  *
82  * Database URL format:
83  *   $db_url = 'mysql://username:password@localhost/databasename';
84  *   $db_url = 'mysqli://username:password@localhost/databasename';
85  *   $db_url = 'pgsql://username:password@localhost/databasename';
86  */
87
88 require_once('plc_config.php');
89
90 if (PLC_DB_TYPE == 'postgresql') {
91   $db_url = 'pgsql://';
92 } elseif (PLC_DB_TYPE == 'mysql') {
93   $db_url = 'mysql://';
94 }
95 $db_url .= PLC_DB_USER . ':';
96 $db_url .= PLC_DB_PASSWORD . '@';
97 $db_url .= PLC_DB_HOST . ':';
98 $db_url .= PLC_DB_PORT . '/';
99 $db_url .= 'drupal';
100 $db_prefix = '';
101
102 /**
103  * Base URL (optional).
104  *
105  * If you are experiencing issues with different site domains,
106  * uncomment the Base URL statement below (remove the leading hash sign)
107  * and fill in the URL to your Drupal installation.
108  *
109  * You might also want to force users to use a given domain.
110  * See the .htaccess file for more information.
111  *
112  * Examples:
113  *   $base_url = 'http://www.example.com';
114  *   $base_url = 'http://www.example.com:8888';
115  *   $base_url = 'http://www.example.com/drupal';
116  *   $base_url = 'https://www.example.com:8888/drupal';
117  *
118  * It is not allowed to have a trailing slash; Drupal will add it
119  * for you.
120  */
121 # $base_url = 'http://www.example.com';  // NO trailing slash!
122
123 /**
124  * PHP settings:
125  *
126  * To see what PHP settings are possible, including whether they can
127  * be set at runtime (ie., when ini_set() occurs), read the PHP
128  * documentation at http://www.php.net/manual/en/ini.php#ini.list
129  * and take a look at the .htaccess file to see which non-runtime
130  * settings are used there. Settings defined here should not be
131  * duplicated there so as to avoid conflict issues.
132  */
133 ini_set('arg_separator.output',     '&amp;');
134 ini_set('magic_quotes_runtime',     0);
135 ini_set('magic_quotes_sybase',      0);
136 ini_set('session.cache_expire',     200000);
137 ini_set('session.cache_limiter',    'none');
138 ini_set('session.cookie_lifetime',  2000000);
139 ini_set('session.gc_maxlifetime',   200000);
140 ini_set('session.save_handler',     'user');
141 ini_set('session.use_only_cookies', 1);
142 ini_set('session.use_trans_sid',    0);
143 ini_set('url_rewriter.tags',        '');
144 ini_set('memory_limit', '12M');
145
146 /**
147  * Variable overrides:
148  *
149  * To override specific entries in the 'variable' table for this site,
150  * set them here. You usually don't need to use this feature. This is
151  * useful in a configuration file for a vhost or directory, rather than
152  * the default settings.php. Any configuration setting from the 'variable'
153  * table can be given a new value.
154  *
155  * Remove the leading hash signs to enable.
156  */
157 # $conf = array(
158 #   'site_name' => 'My Drupal site',
159 #   'theme_default' => 'pushbutton',
160 #   'anonymous' => 'Visitor'
161 # );
162