Changeset 1277
- Timestamp:
- 05/08/08 10:02:44 (3 months ago)
- Files:
-
- trunk/index-install.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/index-install.php
r1226 r1277 233 233 234 234 function printstep1form( $dbname = 'wordpress', $uname = 'username', $pwd = 'password', $dbhost = 'localhost', $vhost = 'yes', $prefix = 'wp_' ) { 235 $weblog_title = 'My new WordPress MU Site';235 $weblog_title = ucfirst( $_SERVER[ 'HTTP_HOST' ] ) . ' Blogs'; 236 236 $email = ''; 237 237 $hostname = $_SERVER[ 'HTTP_HOST' ]; … … 367 367 if( $email == '' ) 368 368 die( 'You must enter an email address!' ); 369 $weblog_title = stripslashes( $_POST[ 'weblog_title' ] );370 369 371 370 // set up site tables 371 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'site_name', '" . $wpdb->escape( $_POST[ 'weblog_title' ] ) . "')" ); 372 372 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_email', '".$email."')" ); 373 373 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_user_id', '1')" ); … … 397 397 --The Team @ SITE_NAME')" ); 398 398 $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!' )" ); 399 400 $weblog_title = stripslashes( $_POST[ 'weblog_title' ] ); 399 401 400 402 $pass = substr( md5( rand() ), 5, 12 );
