X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..5aa86a9053fb0fa15846bb60aac2fb8fdfff524a:/wp-admin/install.php
diff --git a/wp-admin/install.php b/wp-admin/install.php
index 84011430..edbc8c01 100644
--- a/wp-admin/install.php
+++ b/wp-admin/install.php
@@ -1,114 +1,249 @@
wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php
file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.
Create a Configuration File", "WordPress › Error"); +/** + * WordPress Installer + * + * @package WordPress + * @subpackage Administration + */ + +// Sanity check. +if ( false ) { +?> + + +
+ +WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.
+ + + - + > -'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'
');} +/** + * Display installer setup form. + * + * @since 2.8.0 + * @package WordPress + * @subpackage Installer + */ +function display_setup_form( $error = null ) { + global $wpdb; + $user_table = ( $wpdb->get_var("SHOW TABLES LIKE '$wpdb->users'") != null ); -switch($step) { - case 0: - case 1: // in case people are directly linking to this - display_header(); -?> - -ReadMe documentation at your leisure. Otherwise, just fill in the information below and you\'ll be on your way to using the most extendable and powerful personal publishing platform in the world.'), '../readme.html'); ?>
- + // Ensure that Blogs appear in search engines by default + $blog_public = 1; + if ( ! empty( $_POST ) ) + $blog_public = isset( $_POST['blog_public'] ); - - + $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; + $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; + $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; + $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; + if ( ! is_null( $error ) ) { +?> + + +' . __( 'Already Installed' ) . '' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '