summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-08 10:02:44 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-08 10:02:44 +0000
commit60901f707dd291d8e492419261fa63e86eb54dae (patch)
tree9d4a617352704ef3ed438072f9fda82f7c60fe3e
parent575b7330b12e3244c3169d836dd6be5485440a3a (diff)
downloadwordpress-mu-60901f707dd291d8e492419261fa63e86eb54dae.tar.gz
wordpress-mu-60901f707dd291d8e492419261fa63e86eb54dae.tar.xz
wordpress-mu-60901f707dd291d8e492419261fa63e86eb54dae.zip
Record the site_name, fixes #619
Change generic "My new WordPress MU Site" git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1277 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--index-install.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index-install.php b/index-install.php
index 648cfa0..98d3c62 100644
--- a/index-install.php
+++ b/index-install.php
@@ -232,7 +232,7 @@ function step1() {
}
function printstep1form( $dbname = 'wordpress', $uname = 'username', $pwd = 'password', $dbhost = 'localhost', $vhost = 'yes', $prefix = 'wp_' ) {
- $weblog_title = 'My new WordPress MU Site';
+ $weblog_title = ucfirst( $_SERVER[ 'HTTP_HOST' ] ) . ' Blogs';
$email = '';
$hostname = $_SERVER[ 'HTTP_HOST' ];
if( substr( $_SERVER[ 'HTTP_HOST' ], 0, 4 ) == 'www.' )
@@ -366,9 +366,9 @@ function step3() {
$email = $wpdb->escape( $_POST[ 'email' ] );
if( $email == '' )
die( 'You must enter an email address!' );
- $weblog_title = stripslashes( $_POST[ 'weblog_title' ] );
// set up site tables
+ $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'site_name', '" . $wpdb->escape( $_POST[ 'weblog_title' ] ) . "')" );
$wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_email', '".$email."')" );
$wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_user_id', '1')" );
$wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'registration', 'none')" );
@@ -397,6 +397,8 @@ Thanks!
--The Team @ SITE_NAME')" );
$wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'first_post', 'Welcome to <a href=\"SITE_URL\">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' )" );
+ $weblog_title = stripslashes( $_POST[ 'weblog_title' ] );
+
$pass = substr( md5( rand() ), 5, 12 );
$user_id = wpmu_create_user( 'admin', $pass, $email);