| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( !defined( 'ABSPATH' ) ) exit; |
| 4 |
if( !current_user_can('administrator') ) exit; |
| 5 |
?> |
| 6 |
|
| 7 |
<div id="wpf-admin-wrap" class="wrap"> |
| 8 |
<?php wpforo_screen_option() ?> |
| 9 |
<div id="icon-users" class="icon32"><br></div> |
| 10 |
<h2 style="padding:30px 0px 0px 0px;line-height: 20px;"><?php _e('Members', 'wpforo'); ?></h2> |
| 11 |
<?php $wpforo->notice->show(FALSE) ?> |
| 12 |
<?php if(!isset( $_GET['action'] ) || ( isset( $_GET['action']) && $_GET['action'] == -1 ) ) : ?> |
| 13 |
<?php |
| 14 |
$fields[] = 'display_name'; |
| 15 |
$search_fields[] = 'title'; |
| 16 |
$search_fields[] = 'display_name'; |
| 17 |
$filter_fields = array(); |
| 18 |
if($wpforo->perm->usergroup_can( $wpforo->current_user_groupid, 'vmu')){ |
| 19 |
$fields[] = 'user_login'; |
| 20 |
$search_fields[] = 'user_login'; |
| 21 |
} |
| 22 |
if($wpforo->perm->usergroup_can( $wpforo->current_user_groupid, 'vmm')){ |
| 23 |
$fields[] = 'user_email'; |
| 24 |
$search_fields[] = 'user_email'; |
| 25 |
} |
| 26 |
if($wpforo->perm->usergroup_can( $wpforo->current_user_groupid, 'vmg')){ |
| 27 |
$fields[] = 'groupid'; |
| 28 |
$filter_fields[] = 'groupid'; |
| 29 |
} |
| 30 |
if($wpforo->perm->usergroup_can( $wpforo->current_user_groupid, 'vmr')){ |
| 31 |
$fields[] = 'rank'; |
| 32 |
} |
| 33 |
if($wpforo->perm->usergroup_can( $wpforo->current_user_groupid, 'vms')){ |
| 34 |
$search_fields[] = 'signature'; |
| 35 |
} |
| 36 |
$actions = array('button'); |
| 37 |
if( $wpforo->perm->usergroup_can( $wpforo->current_user_groupid, 'em') ) $actions = array('edit_user', 'edit_profile'); |
| 38 |
if( $wpforo->perm->usergroup_can( $wpforo->current_user_groupid, 'dm') ) $actions[] = 'delete'; |
| 39 |
wpforo_create_form_table('member', 'userid', $fields, $search_fields, $filter_fields, $actions); |
| 40 |
?> |
| 41 |
<?php endif; ?> |
| 42 |
</div> |
| 43 |
|
| 44 |
|