diff -urN wordpress-mu-2.6-rc1/wp-admin/admin-header.php wordpress-mu-2.6/wp-admin/admin-header.php --- wordpress-mu-2.6-rc1/wp-admin/admin-header.php 2008-07-10 18:09:16.000000000 +0200 +++ wordpress-mu-2.6/wp-admin/admin-header.php 2008-07-17 16:33:08.000000000 +0200 @@ -110,7 +110,7 @@ -
%2$s!'), 'profile.php', $user_identity) ?> | | Help') . ' | ' . __('Forums') ); if ( $gears_compat ) { ?> |
%2$s!'), 'profile.php', $user_identity) ?> | Help') . ' | ' . __('Forums') ); if ( $gears_compat ) { ?> |
%s directory and it will be automatically deactivated.'), WP_PLUGIN_DIR); ?>
+ diff -urN wordpress-mu-2.6-rc1/wp-admin/setup-config.php wordpress-mu-2.6/wp-admin/setup-config.php --- wordpress-mu-2.6-rc1/wp-admin/setup-config.php 2008-07-15 19:22:59.000000000 +0200 +++ wordpress-mu-2.6/wp-admin/setup-config.php 1970-01-01 01:00:00.000000000 +0100 @@ -1,162 +0,0 @@ -The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now."); - -// Check if wp-config.php exists above the root directory -if (file_exists('../../wp-config.php')) - wp_die("The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.
"); - -if (isset($_GET['step'])) - $step = $_GET['step']; -else - $step = 0; - -function display_header(){ - header( 'Content-Type: text/html; charset=utf-8' ); -?> - - - - -
Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.
-If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open wp-config-sample.php in a text editor, fill in your information, and save it as wp-config.php.
In all likelihood, these items were supplied to you by your ISP. If you do not have this information, then you will need to contact them before you can continue. If you’re all ready…
- - - - -error) ) - wp_die($wpdb->error->get_error_message()); - - $handle = fopen('../wp-config.php', 'w'); - - foreach ($configFile as $line_num => $line) { - switch (substr($line,0,16)) { - case "define('DB_NAME'": - fwrite($handle, str_replace("putyourdbnamehere", $dbname, $line)); - break; - case "define('DB_USER'": - fwrite($handle, str_replace("'usernamehere'", "'$uname'", $line)); - break; - case "define('DB_PASSW": - fwrite($handle, str_replace("'yourpasswordhere'", "'$passwrd'", $line)); - break; - case "define('DB_HOST'": - fwrite($handle, str_replace("localhost", $dbhost, $line)); - break; - case '$table_prefix =': - fwrite($handle, str_replace('wp_', $prefix, $line)); - break; - default: - fwrite($handle, $line); - } - } - fclose($handle); - chmod('../wp-config.php', 0666); - - display_header(); -?> -All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…
- - - - - diff -urN wordpress-mu-2.6-rc1/wp-admin/users.php wordpress-mu-2.6/wp-admin/users.php --- wordpress-mu-2.6-rc1/wp-admin/users.php 2008-06-30 11:23:01.000000000 +0200 +++ wordpress-mu-2.6/wp-admin/users.php 2008-07-22 19:41:46.000000000 +0200 @@ -264,8 +264,9 @@ if( ($username != null && is_site_admin( $username ) == false ) && ( array_key_exists($blog_id, get_blogs_of_user($user_id)) ) ) { $location = 'users.php?update=add_existing'; } else { - add_user_to_blog('', $user_id, $_REQUEST[ 'new_role' ]); - do_action( "added_existing_user", $user_id ); + $newuser_key = substr( md5( $user_id ), 0, 5 ); + add_option( 'new_user_' . $newuser_key, array( 'user_id' => $user_id, 'email' => $user->user_email, 'role' => $_REQUEST[ 'new_role' ] ) ); + wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname' ) ), "Hi,\n\nYou have been invited to join '" . get_option( 'blogname' ) . "' at\n" . site_url() . "\nPlease click the following link to confirm the invite:\n" . site_url( "/newbloguser/$newuser_key/" ) ); $location = 'users.php?update=add'; } wp_redirect("$location"); diff -urN wordpress-mu-2.6-rc1/wp-admin/wpmu-blogs.php wordpress-mu-2.6/wp-admin/wpmu-blogs.php --- wordpress-mu-2.6-rc1/wp-admin/wpmu-blogs.php 2008-05-17 00:45:53.000000000 +0200 +++ wordpress-mu-2.6/wp-admin/wpmu-blogs.php 2008-07-25 12:56:10.000000000 +0200 @@ -294,23 +294,16 @@ $query = "SELECT * FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' "; if( isset($_GET['blog_name']) ) { - $query = "SELECT blog_id, {$wpdb->blogs}.domain, {$wpdb->blogs}.path, registered, last_updated - FROM {$wpdb->blogs}, {$wpdb->site} - WHERE site_id = '{$wpdb->siteid}' - AND {$wpdb->blogs}.site_id = {$wpdb->site}.id - AND ( {$wpdb->blogs}.domain LIKE '%{$s}%' OR {$wpdb->blogs}.path LIKE '%{$s}%' )"; + $query .= " AND ( {$wpdb->blogs}.domain LIKE '%{$s}%' OR {$wpdb->blogs}.path LIKE '%{$s}%' ) "; } elseif( isset($_GET['blog_id']) ) { - $query = "SELECT * - FROM {$wpdb->blogs} - WHERE site_id = '{$wpdb->siteid}' - AND blog_id = '".intval($_GET['s'])."'"; + $query .= " AND blog_id = '".intval($_GET['s'])."' "; } elseif( isset($_GET['blog_ip']) ) { $query = "SELECT * FROM {$wpdb->blogs}, {$wpdb->registration_log} WHERE site_id = '{$wpdb->siteid}' AND {$wpdb->blogs}.blog_id = {$wpdb->registration_log}.blog_id AND {$wpdb->registration_log}.IP LIKE ('%{$s}%')"; - } + } if( isset( $_GET['sortby'] ) == false ) { $_GET['sortby'] = 'id'; @@ -328,15 +321,13 @@ $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC'; - if( !empty($_GET['s']) ) { - $blog_list = $wpdb->get_results( $query, ARRAY_A ); - $total = count($blog_list); + if( !empty($s) ) { + $total = $wpdb->get_var( str_replace('SELECT *', 'SELECT COUNT(blog_id)', $query) ); } else { - $total = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' "); + $total = $wpdb->get_var( "SELECT COUNT(blog_id) FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' "); } $query .= " LIMIT " . intval( ( $apage - 1 ) * $num) . ", " . intval( $num ); - $blog_list = $wpdb->get_results( $query, ARRAY_A ); // Pagination @@ -357,7 +348,7 @@