PageRenderTime 26ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/web/trunk/htdocs/d/sites/default/settings.php

https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git
PHP | 166 lines | 13 code | 8 blank | 145 comment | 0 complexity | 0e1d19e13e49b73f4bcf22ecc795e270 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, LGPL-2.1, Apache-2.0, AGPL-3.0, LGPL-3.0, GPL-3.0, MPL-2.0-no-copyleft-exception, CC-BY-SA-3.0, 0BSD, BSD-3-Clause
  1. <?php
  2. // $Id: settings.php,v 1.39.2.3 2007/07/09 04:28:12 drumm 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. * 'sequences' => 'shared_',
  84. * );
  85. *
  86. * Database URL format:
  87. * $db_url = 'mysql://username:password@localhost/databasename';
  88. * $db_url = 'mysqli://username:password@localhost/databasename';
  89. * $db_url = 'pgsql://username:password@localhost/databasename';
  90. */
  91. /* X!X!X!X!X!X!X database settings are in /etc/brlcad X!X!X!X!X!X */
  92. require_once("/etc/brlcad/sitesettings.php");
  93. /**
  94. * Base URL (optional).
  95. *
  96. * If you are experiencing issues with different site domains,
  97. * uncomment the Base URL statement below (remove the leading hash sign)
  98. * and fill in the URL to your Drupal installation.
  99. *
  100. * You might also want to force users to use a given domain.
  101. * See the .htaccess file for more information.
  102. *
  103. * Examples:
  104. * $base_url = 'http://www.example.com';
  105. * $base_url = 'http://www.example.com:8888';
  106. * $base_url = 'http://www.example.com/drupal';
  107. * $base_url = 'https://www.example.com:8888/drupal';
  108. *
  109. * It is not allowed to have a trailing slash; Drupal will add it
  110. * for you.
  111. */
  112. # $base_url = 'http://www.example.com'; // NO trailing slash!
  113. /**
  114. * PHP settings:
  115. *
  116. * To see what PHP settings are possible, including whether they can
  117. * be set at runtime (ie., when ini_set() occurs), read the PHP
  118. * documentation at http://www.php.net/manual/en/ini.php#ini.list
  119. * and take a look at the .htaccess file to see which non-runtime
  120. * settings are used there. Settings defined here should not be
  121. * duplicated there so as to avoid conflict issues.
  122. */
  123. ini_set('arg_separator.output', '&amp;');
  124. ini_set('magic_quotes_runtime', 0);
  125. ini_set('magic_quotes_sybase', 0);
  126. ini_set('session.cache_expire', 200000);
  127. ini_set('session.cache_limiter', 'none');
  128. ini_set('session.cookie_lifetime', 2000000);
  129. ini_set('session.gc_maxlifetime', 200000);
  130. ini_set('session.save_handler', 'user');
  131. ini_set('session.use_only_cookies', 1);
  132. ini_set('session.use_trans_sid', 0);
  133. ini_set('url_rewriter.tags', '');
  134. /**
  135. * Drupal automatically generates a unique session cookie name for each site
  136. * based on on its full domain name. If you have multiple domains pointing at
  137. * the same Drupal site, you can either redirect them all to a single domain
  138. * (see comment in .htaccess), or uncomment the line below and specify their
  139. * shared base domain. Doing so assures that users remain logged in as they
  140. * cross between your various domains.
  141. */
  142. # $cookie_domain = 'example.com';
  143. /**
  144. * Variable overrides:
  145. *
  146. * To override specific entries in the 'variable' table for this site,
  147. * set them here. You usually don't need to use this feature. This is
  148. * useful in a configuration file for a vhost or directory, rather than
  149. * the default settings.php. Any configuration setting from the 'variable'
  150. * table can be given a new value.
  151. *
  152. * Remove the leading hash signs to enable.
  153. */
  154. # $conf = array(
  155. # 'site_name' => 'My Drupal site',
  156. # 'theme_default' => 'minnelli',
  157. # 'anonymous' => 'Visitor',
  158. # );