summaryrefslogtreecommitdiffstats
path: root/wp-admin/wpmu-users.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-27 14:45:13 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-27 14:45:13 +0000
commitf15216f53efcacc3d93636c3c5a7601af7bff4be (patch)
tree1ad4ff5d11911fd7cb3dfb0d847cb7b8a9824c45 /wp-admin/wpmu-users.php
parentbc96ad1ac715d2db115b24880fef67aae6b3903b (diff)
downloadwordpress-mu-f15216f53efcacc3d93636c3c5a7601af7bff4be.tar.gz
wordpress-mu-f15216f53efcacc3d93636c3c5a7601af7bff4be.tar.xz
wordpress-mu-f15216f53efcacc3d93636c3c5a7601af7bff4be.zip
Applied redirection patch from bug #27.
In blogs display, use $path if using subdirs git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@604 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/wpmu-users.php')
-rw-r--r--wp-admin/wpmu-users.php48
1 files changed, 24 insertions, 24 deletions
diff --git a/wp-admin/wpmu-users.php b/wp-admin/wpmu-users.php
index fdcf55e..a8e556c 100644
--- a/wp-admin/wpmu-users.php
+++ b/wp-admin/wpmu-users.php
@@ -9,6 +9,30 @@ switch( $_GET[ 'action' ] ) {
wpmu_admin_do_redirect( "wpmu-users.php" );
die();
break;
+ case "allusers":
+ if( is_site_admin() == false ) {
+ die( __('<p>You do not have permission to access this page.</p>') );
+ }
+ 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 );
+ 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 );
+ }
+ }
+ }
+ }
+ }
+ }
+ wpmu_admin_do_redirect( "wpmu-users.php" );
+ break;
}
$title = __('WPMU Admin');
@@ -75,30 +99,6 @@ switch( $_GET[ 'action' ] ) {
</p>
<?php
break;
- case "allusers":
- if( is_site_admin() == false ) {
- die( __('<p>You do not have permission to access this page.</p>') );
- }
- 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 );
- 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 );
- }
- }
- }
- }
- }
- }
- header( "Location: wpmu-users.php?updated=true" );
- break;
default:
if( isset( $_GET[ 'start' ] ) == false ) {
$start = 0;