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 ) { if ( isset( $val->meta_value ) && ! $val->meta_value ) continue; $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['blogstatus'] ) ) { if ( 'deleted' == $_GET['blogstatus'] ) { $query .= " AND {$wpdb->blogs}.deleted = '1' "; } elseif ( 'archived' == $_GET['blogstatus'] ) { $query .= " AND {$wpdb->blogs}.archived = '1' "; } elseif ( 'spam' == $_GET['blogstatus'] ) { $query .= " AND {$wpdb->blogs}.spam = '1' "; } } if ( isset( $_GET['searchaction'] ) ) { if ( 'name' == $_GET['searchaction'] ) { $query .= " AND ( {$wpdb->blogs}.domain LIKE '%{$like_s}%' OR {$wpdb->blogs}.path LIKE '%{$like_s}%' ) "; } elseif ( 'id' == $_GET['searchaction'] ) { $query .= " AND {$wpdb->blogs}.blog_id = '{$like_s}' "; } elseif ( 'ip' == $_GET['searchaction'] ) { $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'] ) && 'DESC' == $_GET['order'] ) ? "DESC" : "ASC"; $query .= $order; $total = $wpdb->get_var( str_replace('SELECT *', 'SELECT COUNT(blog_id)', $query) ); $query .= " LIMIT " . intval( ( $pagenum - 1 ) * $per_page) . ", " . intval( $per_page ); $blog_list = $wpdb->get_results( $query, ARRAY_A ); $num_pages = ceil($total / $per_page); $page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __('«'), 'next_text' => __('»'), 'total' => $num_pages, 'current' => $pagenum )); if ( empty($_GET['mode']) ) $mode = 'list'; else $mode = esc_attr( $_GET['mode'] ); // for subsubsub and $blog_list $status_list = array( 'archived' => array( 'site-archived', __('Archived') ), 'spam' => array( 'site-spammed', __('Spam') ), 'deleted' => array( 'site-deleted', __('Deleted') ) ); ?>

' . __('Search results for “%s”') . '', esc_html( $s ) ); ?>

' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $num_pages ) ), number_format_i18n( $num_pages ), $page_links ); echo $page_links_text; ?>
'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); ?> $column_display_name) { $column_link = " $order2, 'paged' => $pagenum, 'sortby' => $column_id ), $_SERVER['REQUEST_URI'] ) ); $column_link .= "'>{$column_display_name}"; $col_url = ($column_id == 'users' || $column_id == 'plugins') ? $column_display_name : $column_link; ?> $column_display_name) { $column_link = " $order2, 'paged' => $pagenum, 'sortby' => $column_id ), remove_query_arg( array('action', 'updated'), $_SERVER['REQUEST_URI'] ) ) ); $column_link .= "'>{$column_display_name}"; $col_url = ($column_id == 'users' || $column_id == 'plugins') ? $column_display_name : $column_link; ?> $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='' /> ' . get_blog_option( $blog['blog_id'], 'blogname' ) . '- ' . get_blog_option( $blog['blog_id'], 'blogdescription ' ) . '

'; $actions = array(); $actions[] = '' . __('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'; echo ( $blog['last_updated'] == '0000-00-00 00:00:00' ) ? __("Never") : mysql2date( __( $date ), $blog['last_updated'] ); ?> 5 ) { $blogusers = array_slice( $blogusers, 0, 5 ); $blogusers_warning = __( 'Only showing first 5 users.' ) . ' ' . __( 'More' ) . ''; } foreach ( $blogusers as $key => $val ) { echo '' . $val->user_login . ' '; if ( 'list' != $mode ) echo '(' . $val->user_email . ')'; echo '
'; } if ( $blogusers_warning != '' ) echo '' . $blogusers_warning . '
'; } ?>
$page_links_text
"; ?>

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

"; ?>