X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..cc7b1505cd9fafd87c3672f669e13e98b0c544f7:/wp-admin/setup-config.php diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 38efd2b7..c3bc45c9 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -1,17 +1,18 @@ 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']; + +if (isset($_GET['step'])) + $step = $_GET['step']; +else + $step = 0; header( 'Content-Type: text/html; charset=utf-8' ); ?> @@ -20,45 +21,74 @@ 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.