diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-18 16:19:53 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-18 16:19:53 +0000 |
commit | 6ae757c9075393d9e9900ea41deaebd469638d96 (patch) | |
tree | 1acb6c0751a134f7f68acbaea0e1dbfe7c3e32ad /index.php | |
parent | f1ca60681936627b5695d8933f5ef81d761dd6a7 (diff) | |
download | wordpress-mu-6ae757c9075393d9e9900ea41deaebd469638d96.tar.gz wordpress-mu-6ae757c9075393d9e9900ea41deaebd469638d96.tar.xz wordpress-mu-6ae757c9075393d9e9900ea41deaebd469638d96.zip |
Add default site record.
Add illegal names setting.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@38 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -328,6 +328,7 @@ function step3() { $wpdb->query( $query ); $query = "INSERT INTO wp_sitemeta (meta_id, site_id, meta_key, meta_value) VALUES (2, 1, 'admin_user_id', '1')"; $wpdb->query( $query ); + $wpdb->query( "INSERT INTO wp_site ( id, domain, path ) VALUES ( '', '$domain', '$base' )" ); $res = createBlog( $domain, $base, 'admin', $weblog_title, $email ); if( $res == 'ok' ) { @@ -340,6 +341,9 @@ function step3() { do_htaccess( "htaccess.dist", ".htaccess", $realpath, $base, $url ); do_htaccess( "wp-inst/htaccess.dist", "wp-inst/.htaccess", $realpath, $base, $url ); + $illegal_names = array( "www", "web", "root", "admin", "main", "invite", "administrator" ); + add_site_settings( "illegal_names", $illegal_names ); + print "<p>Well Done! Your blog has been set up and you have been sent details of your login and password in an email.</p>"; print "<p>You may view your new blog by visiting <a href='".$url."'>".$url."</a>!</p>"; } else { |