Package base :: Package sites :: Package default :: Module settings
[hide private]

Source Code for Module base.sites.default.settings

  1  # $Id: default.settings.php,v 1.8 2007/12/20 09:35:10 goba Exp $ 
  2   
  3  """ 
  4    Drupal site-specific configuration file. 
  5   
  6    @package default 
  7    @see <a href='http://drupy.net'>Drupy Homepage</a> 
  8    @see <a href='http://drupal.org'>Drupal Homepage</a> 
  9    @note Drupy is a port of the Drupal project. 
 10    @note This file was ported from Drupal's sites/default/settings.php 
 11    @author Brendon Crawford 
 12    @copyright 2008 Brendon Crawford 
 13    @contact message144 at users dot sourceforge dot net 
 14    @created 2008-01-10 
 15    @version 0.1 
 16    @note License: 
 17   
 18      This program is free software; you can redistribute it and/or 
 19      modify it under the terms of the GNU General Public License 
 20      as published by the Free Software Foundation; either version 2 
 21      of the License, or (at your option) any later version. 
 22   
 23      This program is distributed in the hope that it will be useful, 
 24      but WITHOUT ANY WARRANTY; without even the implied warranty of 
 25      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 26      GNU General Public License for more details. 
 27   
 28      You should have received a copy of the GNU General Public License 
 29      along with this program; if not, write to: 
 30       
 31      The Free Software Foundation, Inc., 
 32      51 Franklin Street, Fifth Floor, 
 33      Boston, MA  02110-1301, 
 34      USA 
 35  """ 
 36   
 37  # 
 38  # IMPORTANT NOTE: 
 39  # This file may have been set to read-only by the Drupal installation 
 40  # program. If you make changes to this file, be sure to protect it again 
 41  # after making your modifications. Failure to remove write permissions 
 42  # to this file is a security risk. 
 43  # 
 44  # The configuration file to be loaded is based upon the rules below. 
 45  # 
 46  # The configuration directory will be discovered by stripping the 
 47  # website's hostname from left to right and pathname from right to 
 48  # left. The first configuration file found will be used and any 
 49  # others will be ignored. If no other configuration file is found 
 50  # then the default configuration file at 'sites/default' will be used. 
 51  # 
 52  # For example, for a fictitious site installed at 
 53  # http://www.drupal.org/mysite/test/, the 'settings.php' 
 54  # is searched in the following directories: 
 55  # 
 56  #  1. sites/www.drupal.org.mysite.test 
 57  #  2. sites/drupal.org.mysite.test 
 58  #  3. sites/org.mysite.test 
 59  # 
 60  #  4. sites/www.drupal.org.mysite 
 61  #  5. sites/drupal.org.mysite 
 62  #  6. sites/org.mysite 
 63  # 
 64  #  7. sites/www.drupal.org 
 65  #  8. sites/drupal.org 
 66  #  9. sites/org 
 67  # 
 68  # 10. sites/default 
 69  # 
 70  # If you are installing on a non-standard port number, prefix the 
 71  # hostname with that number. For example, 
 72  # http://www.drupal.org:8080/mysite/test/ could be loaded from 
 73  # sites/8080.www.drupal.org.mysite.test/. 
 74  # 
 75   
 76  # 
 77  # Database settings: 
 78  # 
 79  # Note that the $db_url variable gets parsed using PHP's built-in 
 80  # URL parser (i.e. using the "parse_url()" function) so make sure 
 81  # not to confuse the parser. If your username, password 
 82  # or database name contain characters used to delineate 
 83  # $db_url parts, you can escape them via URI hex encodings: 
 84  # 
 85  #   : = %3a   / = %2f   @ = %40 
 86  #   + = %2b   ( = %28   ) = %29 
 87  #   ? = %3f   = = %3d   & = %26 
 88  # 
 89  # To specify multiple connections to be used in your site (i.e. for 
 90  # complex custom plugins) you can also specify an associative array 
 91  # of $db_url variables with the 'default' element used until otherwise 
 92  # requested. 
 93  # 
 94  # You can optionally set prefixes for some or all database table names 
 95  # by using the $db_prefix setting. If a prefix is specified, the table 
 96  # name will be prepended with its value. Be sure to use valid database 
 97  # characters only, usually alphanumeric and underscore. If no prefixes 
 98  # are desired, leave it as an empty string ''. 
 99  # 
100  # To have all database names prefixed, set $db_prefix as a string: 
101  # 
102  #   $db_prefix = 'main_'; 
103  # 
104  # To provide prefixes for specific tables, set $db_prefix as an array. 
105  # The array's keys are the table names and the values are the prefixes. 
106  # The 'default' element holds the prefix for any tables not specified 
107  # elsewhere in the array. Example: 
108  # 
109  #   $db_prefix = array( 
110  #     'default'   => 'main_', 
111  #     'users'     => 'shared_', 
112  #     'sessions'  => 'shared_', 
113  #     'role'      => 'shared_', 
114  #     'authmap'   => 'shared_', 
115  #     'sequences' => 'shared_', 
116  #   ); 
117  # 
118  # Database URL format: 
119  #   $db_url = 'mysql://username:password@localhost/databasename'; 
120  #   $db_url = 'mysqli://username:password@localhost/databasename'; 
121  #   $db_url = 'pgsql://username:password@localhost/databasename'; 
122  # 
123  db_url = 'mysqli://main@localhost/drupalhead'; 
124  db_prefix = ''; 
125   
126  # 
127  # Access control for update.php script 
128  # 
129  # If you are updating your Drupal installation using the update.php script 
130  # being not logged in as administrator, you will need to modify the access 
131  # check statement below. Change the FALSE to a TRUE to disable the access 
132  # check. After finishing the upgrade, be sure to open this file again 
133  # and change the TRUE back to a FALSE! 
134  # 
135  update_free_access = False; 
136   
137  # 
138  # Base URL (optional). 
139  # 
140  # If you are experiencing issues with different site domains, 
141  # uncomment the Base URL statement below (remove the leading hash sign) 
142  # and fill in the URL to your Drupal installation. 
143  # 
144  # You might also want to force users to use a given domain. 
145  # See the .htaccess file for more information. 
146  # 
147  # Examples: 
148  #   $base_url = 'http://www.example.com'; 
149  #   $base_url = 'http://www.example.com:8888'; 
150  #   $base_url = 'http://www.example.com/drupal'; 
151  #   $base_url = 'https://www.example.com:8888/drupal'; 
152  # 
153  # It is not allowed to have a trailing slash; Drupal will add it 
154  # for you. 
155  # 
156  # $base_url = 'http://www.example.com';  // NO trailing slash! 
157  base_url = None 
158   
159  # 
160  # PHP settings: 
161  # 
162  # To see what PHP settings are possible, including whether they can 
163  # be set at runtime (ie., when ini_set() occurs), read the PHP 
164  # documentation at http://www.php.net/manual/en/ini.php#ini.list 
165  # and take a look at the .htaccess file to see which non-runtime 
166  # settings are used there. Settings defined here should not be 
167  # duplicated there so as to avoid conflict issues. 
168  # 
169   
170  # ELIMINATED 
171   
172  # 
173  # Drupal automatically generates a unique session cookie name for each site 
174  # based on on its full domain name. If you have multiple domains pointing at 
175  # the same Drupal site, you can either redirect them all to a single domain 
176  # (see comment in .htaccess), or uncomment the line below and specify their 
177  # shared base domain. Doing so assures that users remain logged in as they 
178  # cross between your various domains. 
179  # 
180  cookie_domain = None; 
181   
182  # Conf defaults 
183  conf = None 
184   
185  # 
186  # Variable overrides: 
187  # 
188  # To override specific entries in the 'variable' table for this site, 
189  # set them here. You usually don't need to use this feature. This is 
190  # useful in a configuration file for a vhost or directory, rather than 
191  # the default settings.php. Any configuration setting from the 'variable' 
192  # table can be given a new value. Note that any values you provide in 
193  # these variable overrides will not be modifiable from the Drupal 
194  # administration interface. 
195  # 
196  # Remove the leading hash signs to enable. 
197  # 
198  # $conf = array( 
199  #   'site_name' => 'My Drupal site', 
200  #   'theme_default' => 'minnelli', 
201  #   'anonymous' => 'Visitor', 
202  # 
203  # A custom theme can be set for the off-line page. This applies when the site 
204  # is explicitly set to off-line mode through the administration page or when 
205  # the database is inactive due to an error. It can be set through the 
206  # 'maintenance_theme' key. The template file should also be copied into the 
207  # theme. It is located inside 'plugins/system/maintenance-page.tpl.php'. 
208  # Note: This setting does not apply to installation and update pages. 
209  # 
210  #   'maintenance_theme' => 'minnelli', 
211  # 
212  # reverse_proxy accepts a boolean value. 
213  # 
214  # Enable this setting to determine the correct IP address of the remote 
215  # client by examining information stored in the X-Forwarded-For headers. 
216  # X-Forwarded-For headers are a standard mechanism for identifying client 
217  # systems connecting through a reverse proxy server, such as Squid or 
218  # Pound. Reverse proxy servers are often used to enhance the performance 
219  # of heavily visited sites and may also provide other site caching, 
220  # security or encryption benefits. If this Drupal installation operates 
221  # behind a reverse proxy, this setting should be enabled so that correct 
222  # IP address information is captured in Drupal's session management, 
223  # logging, statistics and access management systems; if you are unsure 
224  # about this setting, do not have a reverse proxy, or Drupal operates in 
225  # a shared hosting environment, this setting should be set to disabled. 
226  # 
227  #   'reverse_proxy' => TRUE, 
228  # 
229  # reverse_proxy accepts an array of IP addresses. 
230  # 
231  # Each element of this array is the IP address of any of your reverse 
232  # proxies. Filling this array Drupal will trust the information stored 
233  # in the X-Forwarded-For headers only if Remote IP address is one of 
234  # these, that is the request reaches the web server from one of your 
235  # reverse proxies. Otherwise, the client could directly connect to 
236  # your web server spoofing the X-Forwarded-For headers. 
237  # 
238  #   'reverse_proxy_addresses' => array('a.b.c.d', ...), 
239  # ); 
240   
241  # 
242  # String overrides: 
243  # 
244  # To override specific strings on your site with or without enabling locale 
245  # plugin, add an entry to this list. This functionality allows you to change 
246  # a small number of your site's default English language interface strings. 
247  # 
248  # Remove the leading hash signs to enable. 
249  # 
250  # $conf['locale_custom_strings_en'] = array( 
251  #   'forum'      => 'Discussion board', 
252  #   '@count min' => '@count minutes', 
253  # ); 
254