X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/7688c6ba71852cd89123b62b2d57683535e4702a..9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f:/wp-admin/setup-config.php?ds=inline diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index b4dae209..c6f98f1f 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -1,203 +1,345 @@ The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.
"); +/** Load WordPress Administration Upgrade API */ +require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); + +/** Load WordPress Translation Install API */ +require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); + +nocache_headers(); -if (isset($_GET['step'])) - $step = $_GET['step']; +// Support wp-config-sample.php one level up, for the develop repo. +if ( file_exists( ABSPATH . 'wp-config-sample.php' ) ) + $config_file = file( ABSPATH . 'wp-config-sample.php' ); +elseif ( file_exists( dirname( ABSPATH ) . '/wp-config-sample.php' ) ) + $config_file = file( dirname( ABSPATH ) . '/wp-config-sample.php' ); else - $step = 0; + wp_die( __( 'Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.' ) ); -function display_header(){ - 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.
+If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open wp-config-sample.php
in a text editor, fill in your information, and save it as wp-config.php
.
In all likelihood, 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!
+
+ wp-config.php file.' ); ?>
+ wp-config-sample.php in a text editor, fill in your information, and save it as wp-config.php
." ); ?>
+ We got it." ); ?>
+