summaryrefslogtreecommitdiffstats
path: root/index-install.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-03-08 17:37:46 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-03-08 17:37:46 +0000
commit359223a4711934ea6ec20e4c7613832e1f1132b5 (patch)
tree3cb288595d7fd740f612815f4987340743bb9e8d /index-install.php
parent8531a6c7b735ba156eb18358a56289dd13bdd32d (diff)
downloadwordpress-mu-359223a4711934ea6ec20e4c7613832e1f1132b5.tar.gz
wordpress-mu-359223a4711934ea6ec20e4c7613832e1f1132b5.tar.xz
wordpress-mu-359223a4711934ea6ec20e4c7613832e1f1132b5.zip
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
Diffstat (limited to 'index-install.php')
-rw-r--r--index-install.php10
1 files changed, 8 insertions, 2 deletions
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 "<html><head><title>WordPress MU Installer</title><body>";
+ print "<p style='margin-left: 20%; margin-right: 20%; margin-top: 5%; text-align: center'><strong>Warning!</strong> WordPress MU must be installed without the 'www.' in the URL.<br />Please click here to continue the install: <a href='$url'>$url</a></p></body></html>";
+ die();
+ }
+ print '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@@ -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' ] );