X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/76aea3697c6043c1613370f172395b4f65ee71f0..8a4706fdeb1ae30268e510df6ccf3c39b3028059:/wp-admin/install.php diff --git a/wp-admin/install.php b/wp-admin/install.php index 32ef35dc..2ff4f172 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -1,109 +1,256 @@ + + +
+ +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.' ) . '