X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/11be8dc178e77d0b46189bbd8e33a216a9b90942..2329f698283944696a7076258cf816545970bb47:/wp-admin/install.php diff --git a/wp-admin/install.php b/wp-admin/install.php index de5b970d..72916e4b 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -6,128 +6,300 @@ * @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 + */ +function display_setup_form( $error = null ) { + global $wpdb; -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'); ?>
- + $sql = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $wpdb->users ) ); + $user_table = ( $wpdb->get_var( $sql ) != null ); + + // Ensure that Blogs appear in search engines by default. + $blog_public = 1; + if ( isset( $_POST['weblog_title'] ) ) { + $blog_public = isset( $_POST['blog_public'] ); + } - - + $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : ''; + $user_name = isset($_POST['user_name']) ? trim( wp_unslash( $_POST['user_name'] ) ) : ''; + $admin_email = isset( $_POST['admin_email'] ) ? trim( wp_unslash( $_POST['admin_email'] ) ) : ''; - +' . __( 'Already Installed' ) . '' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '