diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 2d6d92d056..c3bc45c943 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -1,68 +1,94 @@ installing now."); - if (!file_exists('../wp-config-sample.php')) die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.'); + $configFile = file('../wp-config-sample.php'); if (!is_writable('../')) die("Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."); -$step = 0; -if(isset($_GET['step'])) $step = $_GET['step']; -header( 'Content-Type: text/html; charset=utf-8' ); -function setup_header() { ?> +if (isset($_GET['step'])) + $step = $_GET['step']; +else + $step = 0; +header( 'Content-Type: text/html; charset=utf-8' ); +?>
Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.
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!
+?> +