get_blog_prefix( $id ); $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" ); $details = get_blog_details($id); $editblog_roles = get_blog_option( $id, "{$blog_prefix}user_roles" ); $is_main_site = is_main_site( $id ); ?>

-

http://domain) ?> http://
path) ?>
/>
public == '1' ) echo 'checked="checked"'; ?> /> public == '0' ) echo 'checked="checked"'; ?> />
archived == '1' ) echo 'checked="checked"'; ?> /> archived == '0' ) echo 'checked="checked"'; ?> />
mature == '1' ) echo 'checked="checked"'; ?> /> mature == '0' ) echo 'checked="checked"'; ?> />
spam == '1' ) echo 'checked="checked"'; ?> /> spam == '0' ) echo 'checked="checked"'; ?> />
deleted == '1' ) echo 'checked="checked"'; ?> /> deleted == '0' ) echo 'checked="checked"'; ?> />

option_name == 'default_role' ) $editblog_default_role = $option->option_value; $disabled = ''; if ( is_serialized($option->option_value) ) { if ( is_serialized_string($option->option_value) ) { $option->option_value = esc_html(maybe_unserialize($option->option_value), 'single'); } else { $option->option_value = "SERIALIZED DATA"; $disabled = ' disabled="disabled"'; } } if ( stristr($option->option_value, "\r") || stristr($option->option_value, "\n") || stristr($option->option_value, "\r\n") ) { ?> option_name, array( 'siteurl', 'home' ) ) ) { ?>
option_name ) ) ?>
option_name ) ) ?> option_value ) ?> />

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

' . __('Site 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}%')"; } $order_by = isset( $_GET['sortby'] ) ? $_GET['sortby'] : 'id'; if ( $order_by == 'registered' ) { $query .= ' ORDER BY registered '; } elseif ( $order_by == 'lastupdated' ) { $query .= ' ORDER BY last_updated '; } elseif ( $order_by == 'blogname' ) { $query .= ' ORDER BY domain '; } else { $order_by = 'id'; $query .= ' ORDER BY ' . $wpdb->blogs . '.blog_id '; } $order = isset($_GET['order']) ? $_GET['order'] : 'ASC'; $order = ( 'DESC' == $order ) ? 'DESC' : 'ASC'; $query .= $order; 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=" . $order . "&sortby=" . $order_by . "&s="; if ( !empty($_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 = ( is_subdomain_install() ) ? __('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 ( !empty($_GET[ 'blog_ip' ]) ) $sortby_url .= "&ip_address=" . urlencode( $s ); else $sortby_url .= urlencode( $s ) . "&ip_address=" . urlencode( $s ); ?> $column_display_name) { $column_link = " array( 'site-archived', __('Archived') ), 'spam' => array( 'site-spammed', __('Spam') ), 'deleted' => array( 'site-deleted', __('Deleted') ) ); $class = ''; foreach ( $blog_list as $blog ) { $class = ('alternate' == $class) ? '' : 'alternate'; reset( $status_list ); $blog_states = array(); foreach ( $status_list as $status => $col ) { if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) { $class = $col[0]; $blog_states[] = $col[1]; } } $blog_state = ''; if ( ! empty($blog_states) ) { $state_count = count($blog_states); $i = 0; $blog_state .= ' - '; foreach ( $blog_states as $state ) { ++$i; ( $i == $state_count ) ? $sep = '' : $sep = ', '; $blog_state .= "$state$sep"; } } echo ""; $blogname = ( is_subdomain_install() ) ? 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') . ''; $actions[] = "" . __('Backend') . ''; if ( get_blog_status( $blog['blog_id'], "deleted" ) == '1' ) $actions[] = '' . __('Activate') . ''; else $actions[] = '' . __('Deactivate') . ''; if ( get_blog_status( $blog['blog_id'], "archived" ) == '1' ) $actions[] = '' . __('Unarchive') . ''; else $actions[] = '' . __('Archive') . ''; if ( get_blog_status( $blog['blog_id'], "spam" ) == '1' ) $actions[] = '' . __('Not Spam') . ''; else $actions[] = '' . __("Spam") . ''; $actions[] = '' . __("Delete") . ''; $actions[] = "" . __('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.' ) . "

"; ?>