PageRenderTime 65ms CodeModel.GetById 35ms RepoModel.GetById 0ms app.codeStats 0ms

/sites/default/settings.php

https://github.com/pmackay/transitionbelsize
PHP | 242 lines | 17 code | 10 blank | 215 comment | 0 complexity | 5322f217f48b5d5148f4119cad1b05b3 MD5 | raw file
  1. <?php
  2. // $Id: default.settings.php,v 1.8.2.4 2009/09/14 12:59:18 goba 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 = 'mysqli://dev:dev@localhost/transitionBelsize-co-uk';
  87. * $db_url = 'mysqli://username:password@localhost/databasename';
  88. * $db_url = 'pgsql://username:password@localhost/databasename';
  89. */
  90. //$db_url = 'mysqli://root:root@localhost/tbelsize3';
  91. $db_url = 'mysqli://root:root@localhost/dev_transitionbelsize';
  92. $db_prefix = '';
  93. /**
  94. * Access control for update.php script
  95. *
  96. * If you are updating your Drupal installation using the update.php script
  97. * being not logged in as administrator, you will need to modify the access
  98. * check statement below. Change the FALSE to a TRUE to disable the access
  99. * check. After finishing the upgrade, be sure to open this file again
  100. * and change the TRUE back to a FALSE!
  101. */
  102. $update_free_access = FALSE;
  103. /**
  104. * Base URL (optional).
  105. *
  106. * If you are experiencing issues with different site domains,
  107. * uncomment the Base URL statement below (remove the leading hash sign)
  108. * and fill in the absolute URL to your Drupal installation.
  109. *
  110. * You might also want to force users to use a given domain.
  111. * See the .htaccess file for more information.
  112. *
  113. * Examples:
  114. * $base_url = 'http://www.example.com';
  115. * $base_url = 'http://www.example.com:8888';
  116. * $base_url = 'http://www.example.com/drupal';
  117. * $base_url = 'https://www.example.com:8888/drupal';
  118. *
  119. * It is not allowed to have a trailing slash; Drupal will add it
  120. * for you.
  121. */
  122. # $base_url = 'http://www.example.com'; // NO trailing slash!
  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_cookies', 1);
  142. ini_set('session.use_only_cookies', 1);
  143. ini_set('session.use_trans_sid', 0);
  144. ini_set('url_rewriter.tags', '');
  145. ini_set('memory_limit', '96M');
  146. /**
  147. * If you encounter a situation where users post a large amount of text, and
  148. * the result is stripped out upon viewing but can still be edited, Drupal's
  149. * output filter may not have sufficient memory to process it. If you
  150. * experience this issue, you may wish to uncomment the following two lines
  151. * and increase the limits of these variables. For more information, see
  152. * http://php.net/manual/en/pcre.configuration.php.
  153. */
  154. # ini_set('pcre.backtrack_limit', 200000);
  155. # ini_set('pcre.recursion_limit', 200000);
  156. /**
  157. * Drupal automatically generates a unique session cookie name for each site
  158. * based on on its full domain name. If you have multiple domains pointing at
  159. * the same Drupal site, you can either redirect them all to a single domain
  160. * (see comment in .htaccess), or uncomment the line below and specify their
  161. * shared base domain. Doing so assures that users remain logged in as they
  162. * cross between your various domains.
  163. */
  164. # $cookie_domain = 'example.com';
  165. /**
  166. * Variable overrides:
  167. *
  168. * To override specific entries in the 'variable' table for this site,
  169. * set them here. You usually don't need to use this feature. This is
  170. * useful in a configuration file for a vhost or directory, rather than
  171. * the default settings.php. Any configuration setting from the 'variable'
  172. * table can be given a new value. Note that any values you provide in
  173. * these variable overrides will not be modifiable from the Drupal
  174. * administration interface.
  175. *
  176. * Remove the leading hash signs to enable.
  177. */
  178. # $conf = array(
  179. # 'site_name' => 'My Drupal site',
  180. # 'theme_default' => 'minnelli',
  181. # 'anonymous' => 'Visitor',
  182. /**
  183. * A custom theme can be set for the off-line page. This applies when the site
  184. * is explicitly set to off-line mode through the administration page or when
  185. * the database is inactive due to an error. It can be set through the
  186. * 'maintenance_theme' key. The template file should also be copied into the
  187. * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
  188. * Note: This setting does not apply to installation and update pages.
  189. */
  190. # 'maintenance_theme' => 'minnelli',
  191. /**
  192. * reverse_proxy accepts a boolean value.
  193. *
  194. * Enable this setting to determine the correct IP address of the remote
  195. * client by examining information stored in the X-Forwarded-For headers.
  196. * X-Forwarded-For headers are a standard mechanism for identifying client
  197. * systems connecting through a reverse proxy server, such as Squid or
  198. * Pound. Reverse proxy servers are often used to enhance the performance
  199. * of heavily visited sites and may also provide other site caching,
  200. * security or encryption benefits. If this Drupal installation operates
  201. * behind a reverse proxy, this setting should be enabled so that correct
  202. * IP address information is captured in Drupal's session management,
  203. * logging, statistics and access management systems; if you are unsure
  204. * about this setting, do not have a reverse proxy, or Drupal operates in
  205. * a shared hosting environment, this setting should be set to disabled.
  206. */
  207. # 'reverse_proxy' => TRUE,
  208. /**
  209. * reverse_proxy accepts an array of IP addresses.
  210. *
  211. * Each element of this array is the IP address of any of your reverse
  212. * proxies. Filling this array Drupal will trust the information stored
  213. * in the X-Forwarded-For headers only if Remote IP address is one of
  214. * these, that is the request reaches the web server from one of your
  215. * reverse proxies. Otherwise, the client could directly connect to
  216. * your web server spoofing the X-Forwarded-For headers.
  217. */
  218. # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
  219. # );
  220. /**
  221. * String overrides:
  222. *
  223. * To override specific strings on your site with or without enabling locale
  224. * module, add an entry to this list. This functionality allows you to change
  225. * a small number of your site's default English language interface strings.
  226. *
  227. * Remove the leading hash signs to enable.
  228. */
  229. # $conf['locale_custom_strings_en'] = array(
  230. # 'forum' => 'Discussion board',
  231. # '@count min' => '@count minutes',
  232. # );