summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-17 21:47:14 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-17 21:47:14 +0000
commita3f3cb346bebb09dd89f31705c43c0c7d5c690d1 (patch)
treeafdf7c9e25ac03eae91fa15fc0328bd57474cbab /install.php
parent988d4f505a8896df226660f37286c7f0bbe01e01 (diff)
downloadbrdo-a3f3cb346bebb09dd89f31705c43c0c7d5c690d1.tar.gz
brdo-a3f3cb346bebb09dd89f31705c43c0c7d5c690d1.tar.bz2
Drupal 6.0-beta 2 release with all Drupal 5.3 security fixes applied
Diffstat (limited to 'install.php')
-rw-r--r--install.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/install.php b/install.php
index 38d2e80f0..27b426d59 100644
--- a/install.php
+++ b/install.php
@@ -208,6 +208,14 @@ function install_change_settings($profile = 'default', $install_locale = '') {
exit;
}
+ if ($db_url == 'mysql://username:password@localhost/databasename') {
+ $db_user = $db_pass = $db_path = '';
+ }
+ elseif (!empty($db_url)) {
+ // Do not install over a configured settings.php.
+ install_already_done_error();
+ }
+
$output = drupal_get_form('install_settings_form', $profile, $install_locale, $settings_file, $db_url, $db_type, $db_prefix, $db_user, $db_pass, $db_host, $db_port, $db_path);
drupal_set_title(st('Database configuration'));
print theme('install_page', $output);