get_blog_prefix( $id ); $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '_transient_rss%' AND option_name NOT LIKE '%user_roles'", ARRAY_A ); $details = $wpdb->get_row( "SELECT * FROM {$wpdb->blogs} WHERE blog_id = '{$id}'", ARRAY_A ); $editblog_roles = get_blog_option( $id, "{$blog_prefix}user_roles" ); ?>

- '>http://

http://

/>
/> />
/> />
/> />
/> />
/> />

$val ) { if( $val['option_name'] == 'default_role' ) { $editblog_default_role = $val['option_value']; } $disabled = ''; if ( is_serialized($val['option_value']) ) { if ( is_serialized_string($val['option_value']) ) { $val['option_value'] = wp_specialchars(maybe_unserialize($val['option_value']), 'single'); } else { $val['option_value'] = "SERIALIZED DATA"; $disabled = ' disabled="disabled"'; } } if ( stristr($val['option_value'], "\r") || stristr($val['option_value'], "\n") || stristr($val['option_value'], "\r\n") ) { ?>
/>

$theme ) { $theme_key = wp_specialchars( $theme['Stylesheet'] ); if( isset($allowed_themes[$theme_key] ) == false ) { $checked = ( isset($blog_allowed_themes[ $theme_key ]) ) ? 'checked="checked"' : ''; $out .= ' '.$key.' ' . __( 'Active' ) . ' '; } } if ( $out != '' ) { ?>

' . __('Blog Users') . '

'; echo ''; echo ""; reset($blogusers); foreach ( (array) $blogusers as $key => $val ) { $t = @unserialize( $val->meta_value ); if( is_array( $t ) ) { reset( $t ); $existing_role = key( $t ); } echo ''; if( $val->user_id != $current_user->data->ID ) { ?> '; } else { echo ""; } echo ''; } echo "
" . __('User') . "" . __('Role') . "" . __('Password') . "" . __('Remove') . "
' . $val->user_login . ' " . __ ('N/A') . "" . __ ('N/A') . "" . __('N/A') . "
"; echo '

'; echo "
"; } ?>

Update Options to add the user.') ?>

blogs} WHERE site_id = '{$wpdb->siteid}' "; if( isset($_GET['blog_name']) ) { $query .= " AND ( {$wpdb->blogs}.domain LIKE '%{$like_s}%' OR {$wpdb->blogs}.path LIKE '%{$like_s}%' ) "; } elseif( isset($_GET['blog_id']) ) { $query .= " AND blog_id = '". absint( $_GET['blog_id'] )."' "; } 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 ('%{$like_s}%')"; } if( isset( $_GET['sortby'] ) == false ) { $_GET['sortby'] = 'id'; } if( $_GET['sortby'] == 'registered' ) { $query .= ' ORDER BY registered '; } elseif( $_GET['sortby'] == 'id' ) { $query .= ' ORDER BY ' . $wpdb->blogs . '.blog_id '; } elseif( $_GET['sortby'] == 'lastupdated' ) { $query .= ' ORDER BY last_updated '; } elseif( $_GET['sortby'] == 'blogname' ) { $query .= ' ORDER BY domain '; } $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC'; if( !empty($s) ) { $total = $wpdb->get_var( str_replace('SELECT *', 'SELECT COUNT(blog_id)', $query) ); } else { $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 $url2 = "&order=" . $_GET['order'] . "&sortby=" . $_GET['sortby'] . "&s="; if( $_GET[ 'blog_ip' ] ) { $url2 .= "&ip_address=" . urlencode( $s ); } else { $url2 .= $s . "&ip_address=" . urlencode( $s ); } $blog_navigation = paginate_links( array( 'base' => add_query_arg( 'apage', '%#%' ).$url2, 'format' => '', 'total' => ceil($total / $num), 'current' => $apage )); ?>

$blog_navigation
"; ?>


'display name' $blogname_columns = ( constant( "VHOST" ) == 'yes' ) ? __('Domain') : __('Path'); $posts_columns = array( 'id' => __('ID'), 'blogname' => $blogname_columns, 'lastupdated' => __('Last Updated'), 'registered' => __('Registered'), 'users' => __('Users') ); if( has_filter( 'wpmublogsaction' ) ) $posts_columns['plugins'] = __('Actions'); $posts_columns = apply_filters('wpmu_blogs_columns', $posts_columns); $sortby_url = "s="; if( $_GET[ 'blog_ip' ] ) { $sortby_url .= "&ip_address=" . urlencode( $s ); } else { $sortby_url .= urlencode( $s ) . "&ip_address=" . urlencode( $s ); } ?> $column_display_name) { $column_link = " "#fee", "spam" => "#faa", "deleted" => "#f55" ); foreach ($blog_list as $blog) { $class = ('alternate' == $class) ? '' : 'alternate'; reset( $status_list ); $bgcolour = ""; foreach ( $status_list as $status => $col ) { if( get_blog_status( $blog['blog_id'], $status ) == 1 ) { $bgcolour = "style='background: $col'"; } } echo ""; $blogname = ( constant( "VHOST" ) == 'yes' ) ? str_replace('.'.$current_site->domain, '', $blog['domain']) : $blog['path']; foreach( $posts_columns as $column_name=>$column_display_name ) { switch($column_name) { case 'id': ?>
' name='allblogs[]' value='' />
' . __('Edit') . ''; $controlActions[] = "" . __('Backend') . ''; if( get_blog_status( $blog['blog_id'], "deleted" ) == '1' ) $controlActions[] = '' . __('Activate') . ''; else $controlActions[] = '' . __('Deactivate') . ''; if( get_blog_status( $blog['blog_id'], "archived" ) == '1' ) $controlActions[] = '' . __('Unarchive') . ''; else $controlActions[] = '' . __('Archive') . ''; if( get_blog_status( $blog['blog_id'], "spam" ) == '1' ) $controlActions[] = '' . __('Not Spam') . ''; else $controlActions[] = '' . __("Spam") . ''; $controlActions[] = '' . __("Delete") . ''; $controlActions[] = "" . __('Visit') . ''; ?>
g:i:s a'), $blog['last_updated']); ?> g:i:s a'), $blog['registered']); ?> 5 ) { $blogusers = array_slice( $blogusers, 0, 5 ); $blogusers_warning = __( 'Only showing first 5 users.' ) . ' ' . __( 'More' ) . ''; } foreach ( $blogusers as $key => $val ) { echo '' . $val->user_login . ' ('.$val->user_email.')
'; } if( $blogusers_warning != '' ) { echo '' . $blogusers_warning . '
'; } } ?>

.domain;?> domain . $current_site->path ?> " . __( 'Only the characters a-z and 0-9 recommended.' ) . "

"; ?>