diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 12:30:48 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 12:30:48 +0000 |
commit | b80c555bd993e8046b212e3392cb426df3b8e73c (patch) | |
tree | e2459b94b47b3a286686121979c6555f204cd0e5 /index.php | |
parent | f3fd9b474d70e93c0aa5ea310c5121e6fd8d1281 (diff) | |
download | wordpress-mu-b80c555bd993e8046b212e3392cb426df3b8e73c.tar.gz wordpress-mu-b80c555bd993e8046b212e3392cb426df3b8e73c.tar.xz wordpress-mu-b80c555bd993e8046b212e3392cb426df3b8e73c.zip |
More VHOST/sub-dirs changes
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@589 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -264,6 +264,9 @@ function step2() { $vhost = $_POST['vhost' ]; $prefix = 'wp_'; $base = stripslashes( dirname( $_SERVER["SCRIPT_NAME"] ) ); + if( $base != "/") { + $base .= "/"; + } // Test the db connection. define('DB_NAME', $dbname); @@ -297,7 +300,7 @@ function step2() { case "define('DB_HOST'": fwrite($handle, str_replace("localhost", $dbhost, $line)); break; - case "define('VHOST', ": + case "define('VHOST',": fwrite($handle, str_replace("VHOSTSETTING", $vhost, $line)); break; case '$table_prefix =': @@ -321,9 +324,9 @@ function printuserdetailsform( $weblog_title = 'My new Blog', $username = '', $e print " <form method='post' action='index.php'> <input type='hidden' name='action' value='step3'> - <p>To finish setting up your blog, please fill in the folling form and click <q>Submit</q>.</p> + <p>To finish setting up your blog, please fill in the following form and click <q>Submit</q>.</p> <h2>Server Address</h2> - <p><label>What is the Internet address of your site? <input type='text' name='basedomain' value='{$hostname}'><br />You should enter the shortest address possible. For example, use <em>example.com</em> instead of <em>www.example.com</em> but if you are going to use an address like <em>blogs.example.com</em> then enter that unaltered in the box above.</label></p> + <p><label>What is the Internet address of your site? You should enter the shortest address possible. For example, use <em>example.com</em> instead of <em>www.example.com</em> but if you are going to use an address like <em>blogs.example.com</em> then enter that unaltered in the box above.<br /><b>Server Address:</b> <input type='text' name='basedomain' value='{$hostname}'></label></p> <h2>Blog Details</h2> <table width='100%'> <tr> @@ -346,8 +349,7 @@ function printuserdetailsform( $weblog_title = 'My new Blog', $username = '', $e function step3() { global $wpdb, $current_site; $base = stripslashes( dirname( $_SERVER["SCRIPT_NAME"] ) ); - if( $base != "/") - { + if( $base != "/") { $base .= "/"; } $domain = $wpdb->escape( $_POST[ 'basedomain' ] ); @@ -366,7 +368,7 @@ function step3() { $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'blog_upload_space', '10' )" ); $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'fileupload_maxk', '1500' )" ); $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'site_admins', '" . serialize( array( 'admin' ) ) . "' )" ); - + $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'illegal_names', '" . serialize( array( "www", "web", "root", "admin", "main", "invite", "administrator" ) ) . "' )" ); $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'welcome_email', 'Dear User, Your new SITE_NAME blog has been successfully set up at: |