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 ); ?>

-

domain ) ?>
path ) ?>
/> siteurl and home as well.' ); ?>
__( 'Public' ) ); if ( ! $is_main_site ) { $checked_fields['archived'] = __( 'Archived' ); $checked_fields['spam'] = __( 'Spam' ); $checked_fields['deleted'] = __( 'Deleted' ); } $checked_fields['mature'] = __( 'Mature' ); foreach ( $checked_fields as $field_key => $field_label ) { ?> $field_key ); ?> />

option_name == 'default_role' ) $editblog_default_role = $option->option_value; $disabled = false; $class = 'all-options'; 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 = true; $class = 'all-options disabled'; } } if ( strpos( $option->option_value, "\n" ) !== false ) { ?> 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 ) . ' '; } } 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 "
"; } ?>

blogs} WHERE site_id = '{$wpdb->siteid}' "; 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'] ); ?>

' . __( '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, $total ) ), number_format_i18n( $total ), $page_links ); echo $page_links_text; ?>
'display name' $blogname_columns = ( is_subdomain_install() ) ? __( 'Domain' ) : __( 'Path' ); $sites_columns = array( 'id' => __( 'ID' ), 'blogname' => $blogname_columns, 'lastupdated' => __( 'Last Updated'), 'registered' => __( 'Registered' ), 'users' => __( 'Users' ) ); if ( has_filter( 'wpmublogsaction' ) ) $sites_columns['plugins'] = __( 'Actions' ); $sites_columns = apply_filters( 'wpmu_blogs_columns', $sites_columns ); ?> $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 .= ''; } echo $col_url ?> array( 'site-archived', __( 'Archived' ) ), 'spam' => array( 'site-spammed', __( 'Spam' ) ), 'deleted' => array( 'site-deleted', __( 'Deleted' ) ), 'mature' => array( 'site-mature', __( 'Mature' ) ) ); if ( $blog_list ) { $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 ( $sites_columns as $column_name=>$column_display_name ) { switch ( $column_name ) { case 'id': ?>
' . ( ( $column_id == 'users' || $column_id == 'plugins' ) ? $column_display_name : $column_link ) . '
' . sprintf( _x( '%1$s – %2$s', '%1$s: site name. %2$s: site tagline.' ), get_blog_option( $blog['blog_id'], 'blogname' ), get_blog_option( $blog['blog_id'], 'blogdescription ' ) ) . '

'; // Preordered. $actions = array( 'edit' => '', 'backend' => '', 'activate' => '', 'deactivate' => '', 'archive' => '', 'unarchive' => '', 'spam' => '', 'unspam' => '', 'delete' => '', 'visit' => '', ); $actions['edit'] = '' . __( 'Edit' ) . ''; $actions['backend'] = "" . __( 'Backend' ) . ''; if ( $current_site->blog_id != $blog['blog_id'] ) { if ( get_blog_status( $blog['blog_id'], 'deleted' ) == '1' ) $actions['activate'] = '' . __( 'Activate' ) . ''; else $actions['deactivate'] = '' . __( 'Deactivate' ) . ''; if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' ) $actions['unarchive'] = '' . __( 'Unarchive' ) . ''; else $actions['archive'] = '' . __( 'Archive' ) . ''; if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' ) $actions['unspam'] = '' . __( 'Not Spam' ) . ''; else $actions['spam'] = '' . __( 'Spam' ) . ''; $actions['delete'] = '' . __( 'Delete' ) . ''; } $actions['visit'] = "" . __( 'Visit' ) . ''; $actions = array_filter( $actions ); if ( count( $actions ) ) : ?>
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 '' . esc_html( $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.' ) . '

'; ?>