diff --git a/wp-admin/install-config.php b/wp-admin/install-config.php new file mode 100644 index 0000000000..a12de63908 --- /dev/null +++ b/wp-admin/install-config.php @@ -0,0 +1,143 @@ + + + +
+Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.
+In all likelyhood, these items were supplied to you by your ISP. If you do not have this information, then you will need to contact them before you can continue. If you’re all ready, let’s go!
+ + + + $line) { + switch (substr($line,0,16)) { + case "define('DB_NAME'": + fwrite($handle, str_replace("wordpress", $dbname, $line)); + break; + case "define('DB_USER'": + fwrite($handle, str_replace("'username'", "'$uname'", $line)); + break; + case "define('DB_PASSW": + fwrite($handle, str_replace("'password'", "'$passwrd'", $line)); + break; + case "define('DB_HOST'": + fwrite($handle, str_replace("localhost", $dbhost, $line)); + break; + case '$table_prefix ': + fwrite($handle, str_replace('wp_', $prefix, $line)); + break; + default: + fwrite($handle, $line); + } + } + fclose($handle); + chmod('../wp-config.php', 0666); +?> +All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to run the install!
+ + + diff --git a/wp-admin/install.php b/wp-admin/install.php index ba8d65fe6d..533dbd290c 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -1,15 +1,15 @@ create one before moving on."); require_once('../wp-config.php'); - +require('upgrade-functions.php'); $step = $HTTP_GET_VARS['step']; if (!$step) $step = 0; ?> -