? files ? info.php ? settings-domain.patch ? sifr ? tracker_restrict_by_type_5.patch ? includes/.common.inc.swp ? misc/checkbox.js ? modules/anon_poll ? modules/module_updater ? sites/asdjahdjksad ? sites/localhost ? sites/all/modules Index: install.php =================================================================== RCS file: /cvs/drupal/drupal/install.php,v retrieving revision 1.26 diff -u -p -r1.26 install.php --- install.php 21 Nov 2006 20:03:10 -0000 1.26 +++ install.php 22 Nov 2006 18:12:59 -0000 @@ -83,7 +83,7 @@ function install_main() { drupal_install_profile($profile, $modules); // Warn about settings.php permissions risk - $settings_file = './'. conf_path() .'/settings.php'; + $settings_file = './sites/'. $_SERVER['HTTP_HOST'] .'/settings.php'; if (!drupal_verify_install_file($settings_file, FILE_EXIST|FILE_READABLE|FILE_NOT_WRITABLE)) { drupal_set_message(st('All necessary changes to %file have been made, so you should now remove write permissions to this file. Failure to remove write permissions to this file is a security risk.', array('%file' => $settings_file)), 'error'); } @@ -117,7 +117,7 @@ function install_verify_settings() { $db_host = urldecode($url['host']); $db_port = isset($url['port']) ? urldecode($url['port']) : ''; $db_path = ltrim(urldecode($url['path']), '/'); - $settings_file = './'. conf_path() .'/settings.php'; + $settings_file = './sites/'. $_SERVER['HTTP_HOST'] .'/settings.php'; _install_settings_form_validate($db_prefix, $db_type, $db_user, $db_pass, $db_host, $db_port, $db_path, $settings_file); if (!form_get_errors()) { @@ -139,7 +139,12 @@ function install_change_settings($profil $db_host = urldecode($url['host']); $db_port = isset($url['port']) ? urldecode($url['port']) : ''; $db_path = ltrim(urldecode($url['path']), '/'); - $settings_file = './'. conf_path() .'/settings.php'; + $domain = $_SERVER['HTTP_HOST']; + if (!is_dir("./sites/$domain")) { + mkdir("./sites/$domain"); + copy('./sites/default/settings.php', "./sites/$domain/settings.php"); + } + $settings_file = './sites/'. $_SERVER['HTTP_HOST'] .'/settings.php'; // We always need this because we want to run form_get_errors. include_once './includes/form.inc';