'>'>'>

You do not have permission to access this page.

') ); } if( is_array( $_POST[ 'allusers' ] ) ) { while( list( $key, $val ) = each( $_POST[ 'allusers' ] ) ) { if( $val != '' && $val != '0' && $val != '1' ) { $user_details = get_userdata( $val ); if( $_POST[ 'userfunction' ] == 'delete' ) { wpmu_delete_user($val); } elseif( $_POST[ 'userfunction' ] == 'spam' ) { $blogs = get_blogs_of_user( $val, true ); if( is_array( $blogs ) ) { while( list( $key, $details ) = each( $blogs ) ) { update_blog_status( $details->userblog_id, "spam", '1' ); do_action( "make_spam_blog", $details->userblog_id ); } } } } } } wp_redirect( add_query_arg( "updated", "true", $_SERVER[ 'HTTP_REFERER' ] ) ); die(); break; } $title = __('WPMU Admin'); $parent_file = 'wpmu-admin.php'; require_once('admin-header.php'); if( is_site_admin() == false ) { die( __('

You do not have permission to access this page.

') ); } if (isset($_GET['updated'])) { ?>

'; switch( $_GET[ 'action' ] ) { case "edit": print "

".__('Edit User')."

"; $options_table_name = $wpmuBaseTablePrefix . $_GET[ 'id' ] ."_options"; $query = "SELECT * FROM ".$wpdb->users." WHERE ID = '".$_GET[ 'id' ]."'"; $userdetails = $wpdb->get_results( $query, ARRAY_A ); $query = "SELECT * FROM ".$wpdb->usermeta." WHERE user_id = '".$_GET[ 'id' ]."'"; $usermetadetails= $wpdb->get_results( $query, ARRAY_A ); ?>
]'>

users; if( $_GET[ 's' ] != '' ) { $search = '%' . addslashes( $_GET['s'] ) . '%'; $query .= " WHERE user_login LIKE '$search' OR user_email LIKE '$search'"; } if( isset( $_GET[ 'sortby' ] ) == false ) { $_GET[ 'sortby' ] = 'id'; } if( $_GET[ 'sortby' ] == 'email' ) { $query .= ' ORDER BY user_email '; } elseif( $_GET[ 'sortby' ] == 'id' ) { $query .= ' ORDER BY ID '; } elseif( $_GET[ 'sortby' ] == 'login' ) { $query .= ' ORDER BY user_login '; } elseif( $_GET[ 'sortby' ] == 'name' ) { $query .= ' ORDER BY display_name '; } elseif( $_GET[ 'sortby' ] == 'registered' ) { $query .= ' ORDER BY user_registered '; } if( $_GET[ 'order' ] == 'DESC' ) { $query .= "DESC"; } else { $query .= "ASC"; } $query .= " LIMIT " . intval( $start ) . ", " . intval( $num ); $user_list = $wpdb->get_results( $query, ARRAY_A ); if( count( $user_list ) < $num ) { $next = false; } else { $next = true; } ?>

'.__('Previous Users').''; } else { echo ''.__('Previous Users').''; } if ( $next ) { echo ' || '.__('Next Users').''; } else { echo ' || '.__('Next Users'); } ?>

'display name' $posts_columns = array( 'id' => __('ID'), 'login' => __('Login'), 'email' => __('Email'), 'name' => __('Name'), 'registered' => __('Registered'), 'blogs' => __('Blogs') ); $posts_columns = apply_filters('manage_posts_columns', $posts_columns); // you can not edit these at the moment $posts_columns['control_edit'] = ''; $posts_columns['control_delete'] = ''; ?>
$column_display_name) { ?> $column_display_name) { switch($column_name) { case 'id': ?>
start=">
' name='allusers[]' value='' /> userblog_id . '">' . str_replace( '.' . $current_site->domain, '', $val->domain ) . ' (userblog_id, 'spam' ) == 1 ) print 'style="background-color: #f66" '; print 'target="_new" href="http://'.$val->domain . $val->path.'">' . __('View') . ')
'; } ?>
" . __('Edit') . ""; ?> " . __('Delete') . ""; ?>

'>