PageRenderTime 49ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/settings.php

https://github.com/redrush85/EJP
PHP | 189 lines | 28 code | 13 blank | 148 comment | 0 complexity | a77b9adc08c45883e0b16f1e1efbd79c MD5 | raw file
  1. <?php
  2. include '/var/www/eju/global_config/global_config.php';
  3. $db_url['default'] = $db_url['ejp'];
  4. #$db_url = 'mysqli://ecjcuser:ECJCuser315@ecjcdb.cb09h6enzo47.eu-west-1.rds.amazonaws.com/ejp';
  5. $db_prefix = '';
  6. $base_url = 'http://ejp.eu'; // NO trailing slash!
  7. $conf['site_mission'] = '<strong>We Are One People</strong>';
  8. $conf['site_name'] = 'EJP';
  9. //$conf['maintenance_theme'] = 'offline';
  10. //$conf['theme_default'] = 'ejp_theme';
  11. $conf['theme_ejp_theme_settings'] = array(
  12. 'main_url' => 'http://ejp.eu/',
  13. 'toggle_favicon' => TRUE,
  14. 'favicon_path' => 'sites/default/themes/ejp_theme/favicon.ico',
  15. 'default_favicon' => FALSE,
  16. 'user_picture_default' => 'sites/default/themes/ejp_theme/img/profile_def.jpg',
  17. );
  18. $cookie_domain = '.ejp.eu';
  19. /**
  20. * Database default collation.
  21. *
  22. * All data stored in Drupal is in UTF-8. Certain databases, such as MySQL,
  23. * support different algorithms for comparing, indexing, and sorting characters;
  24. * a so called "collation". The default collation of a database normally works
  25. * for many use-cases, but depending on the language(s) of the stored data, it
  26. * may be necessary to use a different collation.
  27. * Important:
  28. * - Only set or change this value BEFORE installing Drupal, unless you know
  29. * what you are doing.
  30. * - All database tables and columns should be in the same collation. Otherwise,
  31. * string comparisons performed for table JOINs will be significantly slower.
  32. * - Especially when storing data in German or Russian on MySQL 5.1+, you want
  33. * to use the 'utf8_unicode_ci' collation instead.
  34. *
  35. * @see http://drupal.org/node/772678
  36. */
  37. # $db_collation = 'utf8_general_ci';
  38. /**
  39. * Access control for update.php script
  40. *
  41. * If you are updating your Drupal installation using the update.php script
  42. * being not logged in as administrator, you will need to modify the access
  43. * check statement below. Change the FALSE to a TRUE to disable the access
  44. * check. After finishing the upgrade, be sure to open this file again
  45. * and change the TRUE back to a FALSE!
  46. */
  47. $update_free_access = FALSE;
  48. /**
  49. * Base URL (optional).
  50. *
  51. * If you are experiencing issues with different site domains,
  52. * uncomment the Base URL statement below (remove the leading hash sign)
  53. * and fill in the absolute URL to your Drupal installation.
  54. *
  55. * You might also want to force users to use a given domain.
  56. * See the .htaccess file for more information.
  57. *
  58. * Examples:
  59. * $base_url = 'http://www.example.com';
  60. * $base_url = 'http://www.example.com:8888';
  61. * $base_url = 'http://www.example.com/drupal';
  62. * $base_url = 'https://www.example.com:8888/drupal';
  63. *
  64. * It is not allowed to have a trailing slash; Drupal will add it
  65. * for you.
  66. */
  67. # $base_url = 'http://www.example.com'; // NO trailing slash!
  68. /**
  69. * PHP settings:
  70. *
  71. * To see what PHP settings are possible, including whether they can
  72. * be set at runtime (ie., when ini_set() occurs), read the PHP
  73. * documentation at http://www.php.net/manual/en/ini.php#ini.list
  74. * and take a look at the .htaccess file to see which non-runtime
  75. * settings are used there. Settings defined here should not be
  76. * duplicated there so as to avoid conflict issues.
  77. */
  78. ini_set('arg_separator.output', '&amp;');
  79. ini_set('magic_quotes_runtime', 0);
  80. ini_set('magic_quotes_sybase', 0);
  81. ini_set('session.cache_expire', 200000);
  82. ini_set('session.cache_limiter', 'none');
  83. ini_set('session.cookie_lifetime', 2000000);
  84. ini_set('session.gc_maxlifetime', 200000);
  85. ini_set('session.save_handler', 'user');
  86. ini_set('session.use_cookies', 1);
  87. ini_set('session.use_only_cookies', 1);
  88. ini_set('session.use_trans_sid', 0);
  89. ini_set('url_rewriter.tags', '');
  90. /**
  91. * If you encounter a situation where users post a large amount of text, and
  92. * the result is stripped out upon viewing but can still be edited, Drupal's
  93. * output filter may not have sufficient memory to process it. If you
  94. * experience this issue, you may wish to uncomment the following two lines
  95. * and increase the limits of these variables. For more information, see
  96. * http://php.net/manual/en/pcre.configuration.php.
  97. */
  98. # ini_set('pcre.backtrack_limit', 200000);
  99. # ini_set('pcre.recursion_limit', 200000);
  100. /**
  101. * Drupal automatically generates a unique session cookie name for each site
  102. * based on on its full domain name. If you have multiple domains pointing at
  103. * the same Drupal site, you can either redirect them all to a single domain
  104. * (see comment in .htaccess), or uncomment the line below and specify their
  105. * shared base domain. Doing so assures that users remain logged in as they
  106. * cross between your various domains.
  107. */
  108. # $cookie_domain = 'example.com';
  109. /**
  110. * Variable overrides:
  111. *
  112. * To override specific entries in the 'variable' table for this site,
  113. * set them here. You usually don't need to use this feature. This is
  114. * useful in a configuration file for a vhost or directory, rather than
  115. * the default settings.php. Any configuration setting from the 'variable'
  116. * table can be given a new value. Note that any values you provide in
  117. * these variable overrides will not be modifiable from the Drupal
  118. * administration interface.
  119. *
  120. * Remove the leading hash signs to enable.
  121. */
  122. # $conf = array(
  123. # 'site_name' => 'My Drupal site',
  124. # 'theme_default' => 'minnelli',
  125. # 'anonymous' => 'Visitor',
  126. /**
  127. * A custom theme can be set for the off-line page. This applies when the site
  128. * is explicitly set to off-line mode through the administration page or when
  129. * the database is inactive due to an error. It can be set through the
  130. * 'maintenance_theme' key. The template file should also be copied into the
  131. * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
  132. * Note: This setting does not apply to installation and update pages.
  133. */
  134. # 'maintenance_theme' => 'minnelli',
  135. /**
  136. * reverse_proxy accepts a boolean value.
  137. *
  138. * Enable this setting to determine the correct IP address of the remote
  139. * client by examining information stored in the X-Forwarded-For headers.
  140. * X-Forwarded-For headers are a standard mechanism for identifying client
  141. * systems connecting through a reverse proxy server, such as Squid or
  142. * Pound. Reverse proxy servers are often used to enhance the performance
  143. * of heavily visited sites and may also provide other site caching,
  144. * security or encryption benefits. If this Drupal installation operates
  145. * behind a reverse proxy, this setting should be enabled so that correct
  146. * IP address information is captured in Drupal's session management,
  147. * logging, statistics and access management systems; if you are unsure
  148. * about this setting, do not have a reverse proxy, or Drupal operates in
  149. * a shared hosting environment, this setting should be set to disabled.
  150. */
  151. # 'reverse_proxy' => TRUE,
  152. /**
  153. * reverse_proxy accepts an array of IP addresses.
  154. *
  155. * Each element of this array is the IP address of any of your reverse
  156. * proxies. Filling this array Drupal will trust the information stored
  157. * in the X-Forwarded-For headers only if Remote IP address is one of
  158. * these, that is the request reaches the web server from one of your
  159. * reverse proxies. Otherwise, the client could directly connect to
  160. * your web server spoofing the X-Forwarded-For headers.
  161. */
  162. # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
  163. # );
  164. /**
  165. * String overrides:
  166. *
  167. * To override specific strings on your site with or without enabling locale
  168. * module, add an entry to this list. This functionality allows you to change
  169. * a small number of your site's default English language interface strings.
  170. *
  171. * Remove the leading hash signs to enable.
  172. */
  173. # $conf['locale_custom_strings_en'] = array(
  174. # 'forum' => 'Discussion board',
  175. # '@count min' => '@count minutes',
  176. # );