PageRenderTime 70ms CodeModel.GetById 43ms RepoModel.GetById 1ms app.codeStats 0ms

/app/files/settings.php

https://github.com/ronikb/modules004-alim
PHP | 240 lines | 16 code | 8 blank | 216 comment | 0 complexity | d5322fd925e7b4872b8a975b2e992a4f 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 = '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://alimuser:alim#@!@localhost/alim';
  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 absolute 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_cookies', 1);
  141. ini_set('session.use_only_cookies', 1);
  142. ini_set('session.use_trans_sid', 0);
  143. ini_set('url_rewriter.tags', '');
  144. //$conf['cache_inc'] = './sites/all/modules/authcache/authcache.inc';
  145. /**
  146. * If you encounter a situation where users post a large amount of text, and
  147. * the result is stripped out upon viewing but can still be edited, Drupal's
  148. * output filter may not have sufficient memory to process it. If you
  149. * experience this issue, you may wish to uncomment the following two lines
  150. * and increase the limits of these variables. For more information, see
  151. * http://php.net/manual/en/pcre.configuration.php.
  152. */
  153. # ini_set('pcre.backtrack_limit', 200000);
  154. # ini_set('pcre.recursion_limit', 200000);
  155. /**
  156. * Drupal automatically generates a unique session cookie name for each site
  157. * based on on its full domain name. If you have multiple domains pointing at
  158. * the same Drupal site, you can either redirect them all to a single domain
  159. * (see comment in .htaccess), or uncomment the line below and specify their
  160. * shared base domain. Doing so assures that users remain logged in as they
  161. * cross between your various domains.
  162. */
  163. # $cookie_domain = 'example.com';
  164. /**
  165. * Variable overrides:
  166. *
  167. * To override specific entries in the 'variable' table for this site,
  168. * set them here. You usually don't need to use this feature. This is
  169. * useful in a configuration file for a vhost or directory, rather than
  170. * the default settings.php. Any configuration setting from the 'variable'
  171. * table can be given a new value. Note that any values you provide in
  172. * these variable overrides will not be modifiable from the Drupal
  173. * administration interface.
  174. *
  175. * Remove the leading hash signs to enable.
  176. */
  177. # $conf = array(
  178. # 'site_name' => 'My Drupal site',
  179. # 'theme_default' => 'minnelli',
  180. # 'anonymous' => 'Visitor',
  181. /**
  182. * A custom theme can be set for the off-line page. This applies when the site
  183. * is explicitly set to off-line mode through the administration page or when
  184. * the database is inactive due to an error. It can be set through the
  185. * 'maintenance_theme' key. The template file should also be copied into the
  186. * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
  187. * Note: This setting does not apply to installation and update pages.
  188. */
  189. # 'maintenance_theme' => 'minnelli',
  190. /**
  191. * reverse_proxy accepts a boolean value.
  192. *
  193. * Enable this setting to determine the correct IP address of the remote
  194. * client by examining information stored in the X-Forwarded-For headers.
  195. * X-Forwarded-For headers are a standard mechanism for identifying client
  196. * systems connecting through a reverse proxy server, such as Squid or
  197. * Pound. Reverse proxy servers are often used to enhance the performance
  198. * of heavily visited sites and may also provide other site caching,
  199. * security or encryption benefits. If this Drupal installation operates
  200. * behind a reverse proxy, this setting should be enabled so that correct
  201. * IP address information is captured in Drupal's session management,
  202. * logging, statistics and access management systems; if you are unsure
  203. * about this setting, do not have a reverse proxy, or Drupal operates in
  204. * a shared hosting environment, this setting should be set to disabled.
  205. */
  206. # 'reverse_proxy' => TRUE,
  207. /**
  208. * reverse_proxy accepts an array of IP addresses.
  209. *
  210. * Each element of this array is the IP address of any of your reverse
  211. * proxies. Filling this array Drupal will trust the information stored
  212. * in the X-Forwarded-For headers only if Remote IP address is one of
  213. * these, that is the request reaches the web server from one of your
  214. * reverse proxies. Otherwise, the client could directly connect to
  215. * your web server spoofing the X-Forwarded-For headers.
  216. */
  217. # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
  218. # );
  219. /**
  220. * String overrides:
  221. *
  222. * To override specific strings on your site with or without enabling locale
  223. * module, add an entry to this list. This functionality allows you to change
  224. * a small number of your site's default English language interface strings.
  225. *
  226. * Remove the leading hash signs to enable.
  227. */
  228. # $conf['locale_custom_strings_en'] = array(
  229. # 'forum' => 'Discussion board',
  230. # '@count min' => '@count minutes',
  231. # );
  232. #ini_set('memory_limit', '256M');