X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/3e7fab96d7874067884348df10bbdcdefa4a89ad..8a06f4f9392d1ac373442f82ee40428a3cb81395:/wp-admin/install.php diff --git a/wp-admin/install.php b/wp-admin/install.php index 6f4d7e3e..32ef35dc 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -1,12 +1,7 @@ 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.", "WordPress › Error"); -} -require_once('../wp-config.php'); +require_once('../wp-load.php'); require_once('./includes/upgrade.php'); if (isset($_GET['step'])) @@ -21,7 +16,7 @@ header( 'Content-Type: text/html; charset=utf-8' ); <?php _e('WordPress › Installation'); ?> - +

WordPress

@@ -39,28 +34,27 @@ switch($step) { ?>

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'); ?>

- +

- +
- + - - + + - - +

+
 
-

-

+

error) ) wp_die($wpdb->error->get_error_message()); - display_header(); + display_header(); // Fill in the data we gathered $weblog_title = stripslashes($_POST['weblog_title']); $admin_email = stripslashes($_POST['admin_email']); @@ -77,10 +71,10 @@ switch($step) { // check e-mail address if (empty($admin_email)) { // TODO: poka-yoke - die(__("ERROR: you must provide an e-mail address")); + die('

'.__("ERROR: you must provide an e-mail address.").'

'); } else if (!is_email($admin_email)) { // TODO: poka-yoke - die(__('ERROR: that isn\'t a valid e-mail address. E-mail addresses look like: username@example.com')); + die('

'.__('ERROR: that isn’t a valid e-mail address. E-mail addresses look like: username@example.com').'

'); } $wpdb->show_errors(); @@ -90,24 +84,26 @@ switch($step) {

-

log in with the username "admin" and password "%2$s".'), '../wp-login.php', $password); ?>

-

Note that password carefully! It is a random password that was generated just for you.'); ?>

+

+ + + + + + + + + + +
admin

+ '.__('Note that password carefully! It is a random password that was generated just for you.').'

'; ?>
-
-
-
admin
-
-
-
-
wp-login.php
-
-

+

- - + - \ No newline at end of file +