X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/449d082fcc4873c1f7d363a0d9f7409be7f6e77d..a01a150d87a096c70b6ec80332b7ce89c943eefe:/wp-admin/install.php diff --git a/wp-admin/install.php b/wp-admin/install.php index de5b970d..d23073b6 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -6,128 +6,259 @@ * @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.' ) . '