X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/022dfbbbe3215917d84708eb09acca93b21ae9e0..959f97d8ecd5c1668103a3e41c795486b944bc68:/wp-admin/install.php?ds=sidebyside
diff --git a/wp-admin/install.php b/wp-admin/install.php
index eb635aa2..84011430 100644
--- a/wp-admin/install.php
+++ b/wp-admin/install.php
@@ -1,225 +1,114 @@
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.");
+if (!file_exists('../wp-config.php')) {
+ require_once('../wp-includes/compat.php');
+ require_once('../wp-includes/functions.php');
+ wp_die("There doesn't seem to be a 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"); +} require_once('../wp-config.php'); -require_once('./upgrade-functions.php'); - -$schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; -$guessurl = str_replace('/wp-admin/install.php?step=2', '', $schema . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) ); +require_once('./includes/upgrade.php'); if (isset($_GET['step'])) $step = $_GET['step']; else $step = 0; +function display_header(){ header( 'Content-Type: text/html; charset=utf-8' ); ?> - +>
-'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'
'); -$wpdb->show_errors(); +if ( is_blog_installed() ) {display_header(); die(''.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'