Mercurial > defr > drupal > core
comparison includes/bootstrap.inc @ 7:fff6d4c8c043 6.3
Drupal 6.3
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:30:28 +0100 |
| parents | c1f4ac30525a |
| children | 589fb7c02327 |
comparison
equal
deleted
inserted
replaced
| 6:2cfdc3c92142 | 7:fff6d4c8c043 |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: bootstrap.inc,v 1.206.2.2 2008/02/11 14:36:21 goba Exp $ | 2 // $Id: bootstrap.inc,v 1.206.2.3 2008/07/09 19:15:59 goba Exp $ |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * @file | 5 * @file |
| 6 * Functions that need to be loaded on every Drupal request. | 6 * Functions that need to be loaded on every Drupal request. |
| 7 */ | 7 */ |
| 277 global $db_url, $db_prefix, $cookie_domain, $conf, $installed_profile, $update_free_access; | 277 global $db_url, $db_prefix, $cookie_domain, $conf, $installed_profile, $update_free_access; |
| 278 $conf = array(); | 278 $conf = array(); |
| 279 | 279 |
| 280 if (file_exists('./'. conf_path() .'/settings.php')) { | 280 if (file_exists('./'. conf_path() .'/settings.php')) { |
| 281 include_once './'. conf_path() .'/settings.php'; | 281 include_once './'. conf_path() .'/settings.php'; |
| 282 } | |
| 283 | |
| 284 // Ignore the placeholder url from default.settings.php. | |
| 285 if (isset($db_url) && $db_url == 'mysql://username:password@localhost/databasename') { | |
| 286 $db_url = ''; | |
| 282 } | 287 } |
| 283 | 288 |
| 284 if (isset($base_url)) { | 289 if (isset($base_url)) { |
| 285 // Parse fixed base URL from settings.php. | 290 // Parse fixed base URL from settings.php. |
| 286 $parts = parse_url($base_url); | 291 $parts = parse_url($base_url); |
