diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-admin/install.php
--- a/web/wp-admin/install.php Thu Sep 16 15:45:36 2010 +0000
+++ b/web/wp-admin/install.php Mon Nov 19 18:26:13 2012 +0100
@@ -6,81 +6,144 @@
* @subpackage Administration
*/
+// Sanity check.
+if ( false ) {
+?>
+
+
+
+
+ Error: PHP is not running
+
+
+ 
+ Error: PHP is not running
+ WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.
+
+
+
-
+
>
-
+
-
-
+>
+
get_var("SHOW TABLES LIKE '$wpdb->users'") != null );
+
// Ensure that Blogs appear in search engines by default
$blog_public = 1;
- if ( isset($_POST) && !empty($_POST) ) {
- $blog_public = isset($_POST['blog_public']);
- }
+ 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 ) ) {
?>
-ERROR: %s'), $error); ?>
+ERROR: %s' ), $error ); ?>
'.__('Already Installed').''.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'
');}
+if ( is_blog_installed() ) {
+ display_header();
+ die( '' . __( 'Already Installed' ) . '
' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '
' . __('Log In') . '