| Commit | Line | Data |
|---|---|---|
| 0b663943 W |
1 | <?php |
| 2 | // $Id$ | |
| 3 | ||
| 4 | /** | |
| 5 | * @file | |
| 6 | * Drupal site-specific configuration file. | |
| 7 | * | |
| 8 | * The configuration file to be loaded is based upon the rules below. | |
| 9 | * | |
| 10 | * The configuration directory will be discovered by stripping the | |
| 11 | * website's hostname from left to right and pathname from right to | |
| 12 | * left. The first configuration file found will be used and any | |
| 13 | * others will be ignored. If no other configuration file is found | |
| 14 | * then the default configuration file at 'sites/default' will be used. | |
| 15 | * | |
| 16 | * For example, for a fictitious site installed at | |
| 17 | * http://www.drupal.org/mysite/test/, the 'settings.php' | |
| 18 | * is searched in the following directories: | |
| 19 | * | |
| 20 | * 1. sites/www.drupal.org.mysite.test | |
| 21 | * 2. sites/drupal.org.mysite.test | |
| 22 | * 3. sites/org.mysite.test | |
| 23 | * | |
| 24 | * 4. sites/www.drupal.org.mysite | |
| 25 | * 5. sites/drupal.org.mysite | |
| 26 | * 6. sites/org.mysite | |
| 27 | * | |
| 28 | * 7. sites/www.drupal.org | |
| 29 | * 8. sites/drupal.org | |
| 30 | * 9. sites/org | |
| 31 | * | |
| 32 | * 10. sites/default | |
| 33 | * | |
| 34 | * If you are installing on a non-standard port number, prefix the | |
| 35 | * hostname with that number. For example, | |
| 36 | * http://www.drupal.org:8080/mysite/test/ could be loaded from | |
| 37 | * sites/8080.www.drupal.org.mysite.test/. | |
| 38 | */ | |
| 39 | ||
| 40 | /** | |
| 41 | * Database settings: | |
| 42 | * | |
| 43 | * Note that the $db_url variable gets parsed using PHP's built-in | |
| 44 | * URL parser (i.e. using the "parse_url()" function) so make sure | |
| 45 | * not to confuse the parser. If your username, password | |
| 46 | * or database name contain characters used to delineate | |
| 47 | * $db_url parts, you can escape them via URI hex encodings: | |
| 48 | * | |
| 49 | * : = %3a / = %2f @ = %40 | |
| 50 | * + = %2b ( = %28 ) = %29 | |
| 51 | * ? = %3f = = %3d & = %26 | |
| 52 | * | |
| 53 | * To specify multiple connections to be used in your site (i.e. for | |
| 54 | * complex custom modules) you can also specify an associative array | |
| 55 | * of $db_url variables with the 'default' element used until otherwise | |
| 56 | * requested. | |
| 57 | * | |
| 58 | * You can optionally set prefixes for some or all database table names | |
| 59 | * by using the $db_prefix setting. If a prefix is specified, the table | |
| 60 | * name will be prepended with its value. Be sure to use valid database | |
| 61 | * characters only, usually alphanumeric and underscore. If no prefixes | |
| 62 | * are desired, leave it as an empty string ''. | |
| 63 | * | |
| 64 | * To have all database names prefixed, set $db_prefix as a string: | |
| 65 | * | |
| 66 | * $db_prefix = 'main_'; | |
| 67 | * | |
| 68 | * To provide prefixes for specific tables, set $db_prefix as an array. | |
| 69 | * The array's keys are the table names and the values are the prefixes. | |
| 70 | * The 'default' element holds the prefix for any tables not specified | |
| 71 | * elsewhere in the array. Example: | |
| 72 | * | |
| 73 | * $db_prefix = array( | |
| 74 | * 'default' => 'main_', | |
| 75 | * 'users' => 'shared_', | |
| 76 | * 'sessions' => 'shared_', | |
| 77 | * 'role' => 'shared_', | |
| 78 | * 'authmap' => 'shared_', | |
| 79 | * 'sequences' => 'shared_', | |
| 80 | * ); | |
| 81 | * | |
| 82 | * Database URL format: | |
| 83 | * $db_url = 'mysql://username:password@localhost/databasename'; | |
| 84 | * $db_url = 'mysqli://username:password@localhost/databasename'; | |
| 85 | * $db_url = 'pgsql://username:password@localhost/databasename'; | |
| 86 | */ | |
| 87 | $db_url = 'mysql://root:naga2006@localhost/drupal5'; | |
| 88 | $db_prefix = ''; | |
| 89 | ||
| 90 | /** | |
| 91 | * Base URL (optional). | |
| 92 | * | |
| 93 | * If you are experiencing issues with different site domains, | |
| 94 | * uncomment the Base URL statement below (remove the leading hash sign) | |
| 95 | * and fill in the URL to your Drupal installation. | |
| 96 | * | |
| 97 | * You might also want to force users to use a given domain. | |
| 98 | * See the .htaccess file for more information. | |
| 99 | * | |
| 100 | * Examples: | |
| 101 | * $base_url = 'http://www.example.com'; | |
| 102 | * $base_url = 'http://www.example.com:8888'; | |
| 103 | * $base_url = 'http://www.example.com/drupal'; | |
| 104 | * $base_url = 'https://www.example.com:8888/drupal'; | |
| 105 | * | |
| 106 | * It is not allowed to have a trailing slash; Drupal will add it | |
| 107 | * for you. | |
| 108 | */ | |
| 109 | # $base_url = 'http://www.example.com'; // NO trailing slash! | |
| 110 | $base_url = 'http://www.drupal50.coba'; // NO trailing slash! | |
| 111 | ||
| 112 | /** | |
| 113 | * PHP settings: | |
| 114 | * | |
| 115 | * To see what PHP settings are possible, including whether they can | |
| 116 | * be set at runtime (ie., when ini_set() occurs), read the PHP | |
| 117 | * documentation at http://www.php.net/manual/en/ini.php#ini.list | |
| 118 | * and take a look at the .htaccess file to see which non-runtime | |
| 119 | * settings are used there. Settings defined here should not be | |
| 120 | * duplicated there so as to avoid conflict issues. | |
| 121 | */ | |
| 122 | ini_set('arg_separator.output', '&'); | |
| 123 | ini_set('magic_quotes_runtime', 0); | |
| 124 | ini_set('magic_quotes_sybase', 0); | |
| 125 | ini_set('session.cache_expire', 200000); | |
| 126 | ini_set('session.cache_limiter', 'none'); | |
| 127 | ini_set('session.cookie_lifetime', 2000000); | |
| 128 | ini_set('session.gc_maxlifetime', 200000); | |
| 129 | ini_set('session.save_handler', 'user'); | |
| 130 | ini_set('session.use_only_cookies', 1); | |
| 131 | ini_set('session.use_trans_sid', 0); | |
| 132 | ini_set('url_rewriter.tags', ''); | |
| 133 | ||
| 134 | /** | |
| 135 | * Variable overrides: | |
| 136 | * | |
| 137 | * To override specific entries in the 'variable' table for this site, | |
| 138 | * set them here. You usually don't need to use this feature. This is | |
| 139 | * useful in a configuration file for a vhost or directory, rather than | |
| 140 | * the default settings.php. Any configuration setting from the 'variable' | |
| 141 | * table can be given a new value. | |
| 142 | * | |
| 143 | * Remove the leading hash signs to enable. | |
| 144 | */ | |
| 145 | # $conf = array( | |
| 146 | # 'site_name' => 'My Drupal site', | |
| 147 | # 'theme_default' => 'minnelli', | |
| 148 | # 'anonymous' => 'Visitor', | |
| 149 | # ); | |
| 150 |