Advertisement
Guest User

settings.php

a guest
Jan 28th, 2014
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.34 KB | None | 0 0
  1. <?php
  2.  
  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. /**
  46.  * Database settings:
  47.  *
  48.  * Note that the $db_url variable gets parsed using PHP's built-in
  49.  * URL parser (i.e. using the "parse_url()" function) so make sure
  50.  * not to confuse the parser. If your username, password
  51.  * or database name contain characters used to delineate
  52.  * $db_url parts, you can escape them via URI hex encodings:
  53.  *
  54.  *   : = %3a   / = %2f   @ = %40
  55.  *   + = %2b   ( = %28   ) = %29
  56.  *   ? = %3f   = = %3d   & = %26
  57.  *
  58.  * To specify multiple connections to be used in your site (i.e. for
  59.  * complex custom modules) you can also specify an associative array
  60.  * of $db_url variables with the 'default' element used until otherwise
  61.  * requested.
  62.  *
  63.  * You can optionally set prefixes for some or all database table names
  64.  * by using the $db_prefix setting. If a prefix is specified, the table
  65.  * name will be prepended with its value. Be sure to use valid database
  66.  * characters only, usually alphanumeric and underscore. If no prefixes
  67.  * are desired, leave it as an empty string ''.
  68.  *
  69.  * To have all database names prefixed, set $db_prefix as a string:
  70.  *
  71.  *   $db_prefix = 'main_';
  72.  *
  73.  * To provide prefixes for specific tables, set $db_prefix as an array.
  74.  * The array's keys are the table names and the values are the prefixes.
  75.  * The 'default' element holds the prefix for any tables not specified
  76.  * elsewhere in the array. Example:
  77.  *
  78.  *   $db_prefix = array(
  79.  *     'default'   => 'main_',
  80.  *     'users'     => 'shared_',
  81.  *     'sessions'  => 'shared_',
  82.  *     'role'      => 'shared_',
  83.  *     'authmap'   => '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. $db_url = 'mysql://valakioldala_admin:valakijelszava@localhost/valakioldala_main';
  92. $db_prefix = '';
  93.  
  94. /**
  95.  * Database default collation.
  96.  *
  97.  * All data stored in Drupal is in UTF-8. Certain databases, such as MySQL,
  98.  * support different algorithms for comparing, indexing, and sorting characters;
  99.  * a so called "collation". The default collation of a database normally works
  100.  * for many use-cases, but depending on the language(s) of the stored data, it
  101.  * may be necessary to use a different collation.
  102.  * Important:
  103.  * - Only set or change this value BEFORE installing Drupal, unless you know
  104.  *   what you are doing.
  105.  * - All database tables and columns should be in the same collation. Otherwise,
  106.  *   string comparisons performed for table JOINs will be significantly slower.
  107.  * - Especially when storing data in German or Russian on MySQL 5.1+, you want
  108.  *   to use the 'utf8_unicode_ci' collation instead.
  109.  *
  110.  * @see http://drupal.org/node/772678
  111.  */
  112. # $db_collation = 'utf8_general_ci';
  113.  
  114. /**
  115.  * Access control for update.php script
  116.  *
  117.  * If you are updating your Drupal installation using the update.php script
  118.  * being not logged in as administrator, you will need to modify the access
  119.  * check statement below. Change the FALSE to a TRUE to disable the access
  120.  * check. After finishing the upgrade, be sure to open this file again
  121.  * and change the TRUE back to a FALSE!
  122.  */
  123. $update_free_access = TRUE;
  124.  
  125. /**
  126.  * Base URL (optional).
  127.  *
  128.  * If you are experiencing issues with different site domains,
  129.  * uncomment the Base URL statement below (remove the leading hash sign)
  130.  * and fill in the absolute URL to your Drupal installation.
  131.  *
  132.  * You might also want to force users to use a given domain.
  133.  * See the .htaccess file for more information.
  134.  *
  135.  * Examples:
  136.  *   $base_url = 'http://www.example.com';
  137.  *   $base_url = 'http://www.example.com:8888';
  138.  *   $base_url = 'http://www.example.com/drupal';
  139.  *   $base_url = 'https://www.example.com:8888/drupal';
  140.  *
  141.  * It is not allowed to have a trailing slash; Drupal will add it
  142.  * for you.
  143.  */
  144. $base_url = 'http://valakioldala.hu';  // NO trailing slash!
  145.  
  146. /**
  147.  * PHP settings:
  148.  *
  149.  * To see what PHP settings are possible, including whether they can
  150.  * be set at runtime (ie., when ini_set() occurs), read the PHP
  151.  * documentation at http://www.php.net/manual/en/ini.php#ini.list
  152.  * and take a look at the .htaccess file to see which non-runtime
  153.  * settings are used there. Settings defined here should not be
  154.  * duplicated there so as to avoid conflict issues.
  155.  */
  156. ini_set('arg_separator.output',     '&amp;');
  157. ini_set('magic_quotes_runtime',     0);
  158. ini_set('magic_quotes_sybase',      0);
  159. ini_set('session.cache_expire',     200000);
  160. ini_set('session.cache_limiter',    'none');
  161. ini_set('session.cookie_lifetime',  2000000);
  162. ini_set('session.gc_maxlifetime',   200000);
  163. ini_set('session.save_handler',     'user');
  164. ini_set('session.use_cookies',      1);
  165. ini_set('session.use_only_cookies', 1);
  166. ini_set('session.use_trans_sid',    0);
  167. ini_set('url_rewriter.tags',        '');
  168.  
  169. /**
  170.  * If you encounter a situation where users post a large amount of text, and
  171.  * the result is stripped out upon viewing but can still be edited, Drupal's
  172.  * output filter may not have sufficient memory to process it. If you
  173.  * experience this issue, you may wish to uncomment the following two lines
  174.  * and increase the limits of these variables. For more information, see
  175.  * http://php.net/manual/en/pcre.configuration.php.
  176.  */
  177. # ini_set('pcre.backtrack_limit', 200000);
  178. # ini_set('pcre.recursion_limit', 200000);
  179.  
  180. /**
  181.  * Drupal automatically generates a unique session cookie name for each site
  182.  * based on on its full domain name. If you have multiple domains pointing at
  183.  * the same Drupal site, you can either redirect them all to a single domain
  184.  * (see comment in .htaccess), or uncomment the line below and specify their
  185.  * shared base domain. Doing so assures that users remain logged in as they
  186.  * cross between your various domains.
  187.  */
  188. $cookie_domain = 'valakioldala.hu';
  189.  
  190. /**
  191.  * Variable overrides:
  192.  *
  193.  * To override specific entries in the 'variable' table for this site,
  194.  * set them here. You usually don't need to use this feature. This is
  195.  * useful in a configuration file for a vhost or directory, rather than
  196.  * the default settings.php. Any configuration setting from the 'variable'
  197.  * table can be given a new value. Note that any values you provide in
  198.  * these variable overrides will not be modifiable from the Drupal
  199.  * administration interface.
  200.  *
  201.  * Remove the leading hash signs to enable.
  202.  */
  203. # $conf = array(
  204. #   'site_name' => 'My Drupal site',
  205. #   'theme_default' => 'minnelli',
  206. #   'anonymous' => 'Visitor',
  207. /**
  208.  * A custom theme can be set for the off-line page. This applies when the site
  209.  * is explicitly set to off-line mode through the administration page or when
  210.  * the database is inactive due to an error. It can be set through the
  211.  * 'maintenance_theme' key. The template file should also be copied into the
  212.  * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
  213.  * Note: This setting does not apply to installation and update pages.
  214.  */
  215. #   'maintenance_theme' => 'minnelli',
  216. /**
  217.  * reverse_proxy accepts a boolean value.
  218.  *
  219.  * Enable this setting to determine the correct IP address of the remote
  220.  * client by examining information stored in the X-Forwarded-For headers.
  221.  * X-Forwarded-For headers are a standard mechanism for identifying client
  222.  * systems connecting through a reverse proxy server, such as Squid or
  223.  * Pound. Reverse proxy servers are often used to enhance the performance
  224.  * of heavily visited sites and may also provide other site caching,
  225.  * security or encryption benefits. If this Drupal installation operates
  226.  * behind a reverse proxy, this setting should be enabled so that correct
  227.  * IP address information is captured in Drupal's session management,
  228.  * logging, statistics and access management systems; if you are unsure
  229.  * about this setting, do not have a reverse proxy, or Drupal operates in
  230.  * a shared hosting environment, this setting should be set to disabled.
  231.  */
  232. #   'reverse_proxy' => TRUE,
  233. /**
  234.  * reverse_proxy accepts an array of IP addresses.
  235.  *
  236.  * Each element of this array is the IP address of any of your reverse
  237.  * proxies. Filling this array Drupal will trust the information stored
  238.  * in the X-Forwarded-For headers only if Remote IP address is one of
  239.  * these, that is the request reaches the web server from one of your
  240.  * reverse proxies. Otherwise, the client could directly connect to
  241.  * your web server spoofing the X-Forwarded-For headers.
  242.  */
  243. #   'reverse_proxy_addresses' => array('a.b.c.d', ...),
  244. # );
  245.  
  246. /**
  247.  * String overrides:
  248.  *
  249.  * To override specific strings on your site with or without enabling locale
  250.  * module, add an entry to this list. This functionality allows you to change
  251.  * a small number of your site's default English language interface strings.
  252.  *
  253.  * Remove the leading hash signs to enable.
  254.  */
  255. # $conf['locale_custom_strings_en'] = array(
  256. #   'forum'      => 'Discussion board',
  257. #   '@count min' => '@count minutes',
  258. # );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement