PluginProbe
wpForo Forum / 1.1.2
wpForo Forum v1.1.2
3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 All 137 releases
wpforo / wpf-admin / member.php

member.php in wpForo Forum 1.1.2, at wpf-admin/member.php

54 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Exit if accessed directly
3 if( !defined( 'ABSPATH' ) ) exit;
4 if( !$wpforo->perm->usergroup_can('vm') ) 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('vmu')){
19 $fields[] = 'user_login';
20 $search_fields[] = 'user_login';
21 }
22 if($wpforo->perm->usergroup_can('vmm')){
23 $fields[] = 'user_email';
24 $search_fields[] = 'user_email';
25 }
26 if($wpforo->perm->usergroup_can('vmg')){
27 $fields[] = 'groupid';
28 $filter_fields[] = 'groupid';
29 }
30 if( $wpforo->perm->usergroup_can('bm') ){
31 $fields[] = 'status';
32 $filter_fields[] = 'status';
33 }
34 if($wpforo->perm->usergroup_can('vmr')){
35 $fields[] = 'rank';
36 }
37 if($wpforo->perm->usergroup_can('vms')){
38 $search_fields[] = 'signature';
39 }
40 $actions = array('button');
41 if( $wpforo->perm->usergroup_can('em') ) $actions = array('edit_user', 'edit_profile');
42 if( $wpforo->perm->usergroup_can('bm') ){
43 $actions[] = 'ban';
44 $bulk_actions[] = 'ban';
45 $bulk_actions[] = 'unban';
46 }
47 if( $wpforo->perm->usergroup_can('dm') ){
48 $actions[] = 'user_delete';
49 $bulk_actions[] = 'del';
50 }
51 wpforo_create_form_table('member', 'userid', $fields, $search_fields, $filter_fields, $actions, $bulk_actions);
52 ?>
53 <?php endif; ?>
54 </div>