From 359223a4711934ea6ec20e4c7613832e1f1132b5 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 8 Mar 2007 17:37:46 +0000 Subject: Warn of "www." in URL of installer and die(), should help avoid some http://com/wpmu/ issues git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@908 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- index-install.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'index-install.php') diff --git a/index-install.php b/index-install.php index 5ed11be..6ba9c8d 100644 --- a/index-install.php +++ b/index-install.php @@ -10,7 +10,13 @@ if( $_SERVER[ 'HTTP_HOST' ] == 'localhost' ) { define('WP_INSTALLING', true); function printheader() { - print ' + if( substr( $_SERVER[ 'SERVER_NAME' ], 0, 4 ) == 'www.' ) { + $url = 'http://' . str_replace( 'www.', '', $_SERVER[ 'SERVER_NAME' ] ) . $_SERVER[ 'REQUEST_URI' ]; + print "WordPress MU Installer"; + print "

Warning! WordPress MU must be installed without the 'www.' in the URL.
Please click here to continue the install: $url

"; + die(); + } + print ' @@ -364,7 +370,7 @@ function step3() { } $domain = $wpdb->escape( $_POST[ 'basedomain' ] ); if( substr( $domain, 0, 4 ) == 'www.' ) - $domain = substr( $domain, 4 ); + $domain = substr( $domain, 4 ); $email = $wpdb->escape( $_POST[ 'email' ] ); $weblog_title = $wpdb->escape( $_POST[ 'weblog_title' ] ); -- cgit