users}"; if ( !empty( $like_s ) ) { $query .= " WHERE user_login LIKE '%$like_s%' OR user_email LIKE '%$like_s%'"; } $order_by = isset( $_GET['sortby'] ) ? $_GET['sortby'] : 'id'; if ( $order_by == 'email' ) { $query .= ' ORDER BY user_email '; } elseif ( $order_by == 'login' ) { $query .= ' ORDER BY user_login '; } elseif ( $order_by == 'name' ) { $query .= ' ORDER BY display_name '; } elseif ( $order_by == 'registered' ) { $query .= ' ORDER BY user_registered '; } else { $order_by = 'id'; $query .= ' ORDER BY ID '; } $order = ( isset( $_GET['order'] ) && 'DESC' == $_GET['order'] ) ? 'DESC' : 'ASC'; $query .= $order; $total = $wpdb->get_var( str_replace( 'SELECT *', 'SELECT COUNT(ID)', $query ) ); $query .= " LIMIT " . intval( ( $pagenum - 1 ) * $per_page) . ", " . intval( $per_page ); $user_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' $users_columns = array( 'id' => __( 'ID' ), 'login' => __( 'Username' ), 'name' => __( 'Name' ), 'email' => __( 'E-mail' ), 'registered' => __( 'Registered' ), 'blogs' => __( 'Sites' ) ); $users_columns = apply_filters( 'wpmu_users_columns', $users_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; ?> 'site-spammed', 'deleted' => 'site-deleted' ); foreach ( $status_list as $status => $col ) { if ( $user[$status] ) $class = $col; } ?> $column_display_name ) : switch( $column_name ) { case 'id': ?> ID == $user['ID'] ) ? 'profile.php' : 'user-edit.php?user_id=' . $user['ID']; ?> g:i:s a'; ?>
' . ( $column_id == 'blogs' ? $column_display_name : $column_link ) . '

|
$val ) { $path = ( $val->path == '/' ) ? '' : $val->path; echo '' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . ''; echo ' '; // Edit echo '' . __( 'Edit' ) . ' | '; // View echo 'userblog_id, 'spam' ) == 1 ) echo 'style="background-color: #faa" '; echo 'href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . ''; echo '
'; } } ?>
$page_links_text
"; ?>