Zeile 197 | Zeile 197 |
---|
} elseif($mybb->input['action'] == "joinrequests") {
|
} elseif($mybb->input['action'] == "joinrequests") {
|
$users = "";
| $users = $joinrequests = '';
|
$plugins->run_hooks("managegroup_joinrequests_start");
$query = $db->query("
| $plugins->run_hooks("managegroup_joinrequests_start");
$query = $db->query("
|
Zeile 236 | Zeile 236 |
---|
{ error_no_permission(); }
|
{ error_no_permission(); }
|
| $users = $mybb->get_input('removeuser', MyBB::INPUT_ARRAY);
|
$plugins->run_hooks("managegroup_do_manageusers_start");
|
$plugins->run_hooks("managegroup_do_manageusers_start");
|
if(is_array($mybb->get_input('removeuser', MyBB::INPUT_ARRAY)))
| if(!empty($users))
|
{
|
{
|
foreach($mybb->get_input('removeuser', MyBB::INPUT_ARRAY) as $uid)
| foreach($users as $uid)
|
{ leave_usergroup($uid, $gid); }
| { leave_usergroup($uid, $gid); }
|
Zeile 285 | Zeile 287 |
---|
elseif($usergroup['type'] == 2) { $usergrouptype = $lang->group_private;
|
elseif($usergroup['type'] == 2) { $usergrouptype = $lang->group_private;
|
}
| }
|
else { $usergrouptype = $lang->group_default; }
$group_leaders = '';
|
else { $usergrouptype = $lang->group_default; }
$group_leaders = '';
|
|
|
// Display group leaders (if there is any) $query = $db->query(" SELECT g.*, u.username, u.usergroup, u.displaygroup
| // Display group leaders (if there is any) $query = $db->query(" SELECT g.*, u.username, u.usergroup, u.displaygroup
|
Zeile 313 | Zeile 315 |
---|
$leader['username'] = htmlspecialchars_uni($leader['username']); $leader_name = format_name($leader['username'], $leader['usergroup'], $leader['displaygroup']); $leader_profile_link = build_profile_link($leader_name, $leader['uid']);
|
$leader['username'] = htmlspecialchars_uni($leader['username']); $leader_name = format_name($leader['username'], $leader['usergroup'], $leader['displaygroup']); $leader_profile_link = build_profile_link($leader_name, $leader['uid']);
|
|
|
$leaders_array[] = $leader['uid'];
// Get commas...
| $leaders_array[] = $leader['uid'];
// Get commas...
|
Zeile 341 | Zeile 343 |
---|
break; default: $query = $db->simple_select("users", "*", "CONCAT(',',additionalgroups,',') LIKE '%,{$gid},%' OR usergroup='{$gid}'", array('order_by' => 'username'));
|
break; default: $query = $db->simple_select("users", "*", "CONCAT(',',additionalgroups,',') LIKE '%,{$gid},%' OR usergroup='{$gid}'", array('order_by' => 'username'));
|
}
| }
|
$numusers = $db->num_rows($query);
$perpage = (int)$mybb->settings['membersperpage'];
| $numusers = $db->num_rows($query);
$perpage = (int)$mybb->settings['membersperpage'];
|
Zeile 379 | Zeile 381 |
---|
$query = $db->simple_select("users", "*", "CONCAT(',',additionalgroups,',') LIKE '%,{$gid},%' OR usergroup='{$gid}'", array('order_by' => 'username', 'limit' => $perpage, 'limit_start' => $start)); }
|
$query = $db->simple_select("users", "*", "CONCAT(',',additionalgroups,',') LIKE '%,{$gid},%' OR usergroup='{$gid}'", array('order_by' => 'username', 'limit' => $perpage, 'limit_start' => $start)); }
|
| $removeable_count = 0;
|
$users = ""; while($user = $db->fetch_array($query)) {
| $users = ""; while($user = $db->fetch_array($query)) {
|
Zeile 413 | Zeile 416 |
---|
}
// Checkbox for user management - only if current user is allowed
|
}
// Checkbox for user management - only if current user is allowed
|
$checkbox = ''; if($groupleader['canmanagemembers'] == 1)
| $checkbox = $disabled = ''; if($user['usergroup'] == $gid) { $disabled = 'disabled="disabled"'; } else { ++$removeable_count; }
if($groupleader['canmanagemembers'] == 1)
|
{ eval("\$checkbox = \"".$templates->get("managegroup_user_checkbox")."\";");
|
{ eval("\$checkbox = \"".$templates->get("managegroup_user_checkbox")."\";");
|
}
| }
|
eval("\$users .= \"".$templates->get("managegroup_user")."\";");
|
eval("\$users .= \"".$templates->get("managegroup_user")."\";");
|
}
| }
|
if(!$users)
|
if(!$users)
|
{
| {
|
eval("\$users = \"".$templates->get("managegroup_no_users")."\";"); }
|
eval("\$users = \"".$templates->get("managegroup_no_users")."\";"); }
|
$add_user = ''; $remove_users = '';
| $add_user = $remove_users = $invite_user = '';
|
if($groupleader['canmanagemembers'] == 1) { eval("\$add_user = \"".$templates->get("managegroup_adduser")."\";");
|
if($groupleader['canmanagemembers'] == 1) { eval("\$add_user = \"".$templates->get("managegroup_adduser")."\";");
|
eval("\$remove_users = \"".$templates->get("managegroup_removeusers")."\";");
| if($removeable_count) { eval("\$remove_users = \"".$templates->get("managegroup_removeusers")."\";"); }
|
}
if($usergroup['type'] == 5 && $groupleader['caninvitemembers'] == 1)
| }
if($usergroup['type'] == 5 && $groupleader['caninvitemembers'] == 1)
|