PageRenderTime 63ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/drupal/sites/default/default.settings.php

https://github.com/michaelmcandrew/vaw
PHP | 227 lines | 15 code | 8 blank | 204 comment | 0 complexity | 36a4001e6a7b7e0e00ece35e0f193cc8 MD5 | raw file
  1. <?php
  2. // $Id: default.settings.php,v 1.8.2.1 2008/08/13 06:52:36 dries Exp $
  3. /**
  4. * @file
  5. * Drupal site-specific configuration file.
  6. *
  7. * IMPORTANT NOTE:
  8. * This file may have been set to read-only by the Drupal installation
  9. * program. If you make changes to this file, be sure to protect it again
  10. * after making your modifications. Failure to remove write permissions
  11. * to this file is a security risk.
  12. *
  13. * The configuration file to be loaded is based upon the rules below.
  14. *
  15. * The configuration directory will be discovered by stripping the
  16. * website's hostname from left to right and pathname from right to
  17. * left. The first configuration file found will be used and any
  18. * others will be ignored. If no other configuration file is found
  19. * then the default configuration file at 'sites/default' will be used.
  20. *
  21. * For example, for a fictitious site installed at
  22. * http://www.drupal.org/mysite/test/, the 'settings.php'
  23. * is searched in the following directories:
  24. *
  25. * 1. sites/www.drupal.org.mysite.test
  26. * 2. sites/drupal.org.mysite.test
  27. * 3. sites/org.mysite.test
  28. *
  29. * 4. sites/www.drupal.org.mysite
  30. * 5. sites/drupal.org.mysite
  31. * 6. sites/org.mysite
  32. *
  33. * 7. sites/www.drupal.org
  34. * 8. sites/drupal.org
  35. * 9. sites/org
  36. *
  37. * 10. sites/default
  38. *
  39. * If you are installing on a non-standard port number, prefix the
  40. * hostname with that number. For example,
  41. * http://www.drupal.org:8080/mysite/test/ could be loaded from
  42. * sites/8080.www.drupal.org.mysite.test/.
  43. */
  44. /**
  45. * Database settings:
  46. *
  47. * Note that the $db_url variable gets parsed using PHP's built-in
  48. * URL parser (i.e. using the "parse_url()" function) so make sure
  49. * not to confuse the parser. If your username, password
  50. * or database name contain characters used to delineate
  51. * $db_url parts, you can escape them via URI hex encodings:
  52. *
  53. * : = %3a / = %2f @ = %40
  54. * + = %2b ( = %28 ) = %29
  55. * ? = %3f = = %3d & = %26
  56. *
  57. * To specify multiple connections to be used in your site (i.e. for
  58. * complex custom modules) you can also specify an associative array
  59. * of $db_url variables with the 'default' element used until otherwise
  60. * requested.
  61. *
  62. * You can optionally set prefixes for some or all database table names
  63. * by using the $db_prefix setting. If a prefix is specified, the table
  64. * name will be prepended with its value. Be sure to use valid database
  65. * characters only, usually alphanumeric and underscore. If no prefixes
  66. * are desired, leave it as an empty string ''.
  67. *
  68. * To have all database names prefixed, set $db_prefix as a string:
  69. *
  70. * $db_prefix = 'main_';
  71. *
  72. * To provide prefixes for specific tables, set $db_prefix as an array.
  73. * The array's keys are the table names and the values are the prefixes.
  74. * The 'default' element holds the prefix for any tables not specified
  75. * elsewhere in the array. Example:
  76. *
  77. * $db_prefix = array(
  78. * 'default' => 'main_',
  79. * 'users' => 'shared_',
  80. * 'sessions' => 'shared_',
  81. * 'role' => 'shared_',
  82. * 'authmap' => 'shared_',
  83. * );
  84. *
  85. * Database URL format:
  86. * $db_url = 'mysql://username:password@localhost/databasename';
  87. * $db_url = 'mysqli://username:password@localhost/databasename';
  88. * $db_url = 'pgsql://username:password@localhost/databasename';
  89. */
  90. $db_url = 'mysql://username:password@localhost/databasename';
  91. $db_prefix = '';
  92. /**
  93. * Access control for update.php script
  94. *
  95. * If you are updating your Drupal installation using the update.php script
  96. * being not logged in as administrator, you will need to modify the access
  97. * check statement below. Change the FALSE to a TRUE to disable the access
  98. * check. After finishing the upgrade, be sure to open this file again
  99. * and change the TRUE back to a FALSE!
  100. */
  101. $update_free_access = FALSE;
  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. * PHP settings:
  124. *
  125. * To see what PHP settings are possible, including whether they can
  126. * be set at runtime (ie., when ini_set() occurs), read the PHP
  127. * documentation at http://www.php.net/manual/en/ini.php#ini.list
  128. * and take a look at the .htaccess file to see which non-runtime
  129. * settings are used there. Settings defined here should not be
  130. * duplicated there so as to avoid conflict issues.
  131. */
  132. ini_set('arg_separator.output', '&amp;');
  133. ini_set('magic_quotes_runtime', 0);
  134. ini_set('magic_quotes_sybase', 0);
  135. ini_set('session.cache_expire', 200000);
  136. ini_set('session.cache_limiter', 'none');
  137. ini_set('session.cookie_lifetime', 2000000);
  138. ini_set('session.gc_maxlifetime', 200000);
  139. ini_set('session.save_handler', 'user');
  140. ini_set('session.use_only_cookies', 1);
  141. ini_set('session.use_trans_sid', 0);
  142. ini_set('url_rewriter.tags', '');
  143. /**
  144. * Drupal automatically generates a unique session cookie name for each site
  145. * based on on its full domain name. If you have multiple domains pointing at
  146. * the same Drupal site, you can either redirect them all to a single domain
  147. * (see comment in .htaccess), or uncomment the line below and specify their
  148. * shared base domain. Doing so assures that users remain logged in as they
  149. * cross between your various domains.
  150. */
  151. # $cookie_domain = 'example.com';
  152. /**
  153. * Variable overrides:
  154. *
  155. * To override specific entries in the 'variable' table for this site,
  156. * set them here. You usually don't need to use this feature. This is
  157. * useful in a configuration file for a vhost or directory, rather than
  158. * the default settings.php. Any configuration setting from the 'variable'
  159. * table can be given a new value. Note that any values you provide in
  160. * these variable overrides will not be modifiable from the Drupal
  161. * administration interface.
  162. *
  163. * Remove the leading hash signs to enable.
  164. */
  165. # $conf = array(
  166. # 'site_name' => 'My Drupal site',
  167. # 'theme_default' => 'minnelli',
  168. # 'anonymous' => 'Visitor',
  169. /**
  170. * A custom theme can be set for the off-line page. This applies when the site
  171. * is explicitly set to off-line mode through the administration page or when
  172. * the database is inactive due to an error. It can be set through the
  173. * 'maintenance_theme' key. The template file should also be copied into the
  174. * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
  175. * Note: This setting does not apply to installation and update pages.
  176. */
  177. # 'maintenance_theme' => 'minnelli',
  178. /**
  179. * reverse_proxy accepts a boolean value.
  180. *
  181. * Enable this setting to determine the correct IP address of the remote
  182. * client by examining information stored in the X-Forwarded-For headers.
  183. * X-Forwarded-For headers are a standard mechanism for identifying client
  184. * systems connecting through a reverse proxy server, such as Squid or
  185. * Pound. Reverse proxy servers are often used to enhance the performance
  186. * of heavily visited sites and may also provide other site caching,
  187. * security or encryption benefits. If this Drupal installation operates
  188. * behind a reverse proxy, this setting should be enabled so that correct
  189. * IP address information is captured in Drupal's session management,
  190. * logging, statistics and access management systems; if you are unsure
  191. * about this setting, do not have a reverse proxy, or Drupal operates in
  192. * a shared hosting environment, this setting should be set to disabled.
  193. */
  194. # 'reverse_proxy' => TRUE,
  195. /**
  196. * reverse_proxy accepts an array of IP addresses.
  197. *
  198. * Each element of this array is the IP address of any of your reverse
  199. * proxies. Filling this array Drupal will trust the information stored
  200. * in the X-Forwarded-For headers only if Remote IP address is one of
  201. * these, that is the request reaches the web server from one of your
  202. * reverse proxies. Otherwise, the client could directly connect to
  203. * your web server spoofing the X-Forwarded-For headers.
  204. */
  205. # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
  206. # );
  207. /**
  208. * String overrides:
  209. *
  210. * To override specific strings on your site with or without enabling locale
  211. * module, add an entry to this list. This functionality allows you to change
  212. * a small number of your site's default English language interface strings.
  213. *
  214. * Remove the leading hash signs to enable.
  215. */
  216. # $conf['locale_custom_strings_en'] = array(
  217. # 'forum' => 'Discussion board',
  218. # '@count min' => '@count minutes',
  219. # );