Vergleich managegroup.php - 1.8.6 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 212Zeile 212
		$user['reason'] = htmlspecialchars_uni($user['reason']);
$altbg = alt_trow();
$regdate = my_date($mybb->settings['dateformat'], $user['regdate']);

		$user['reason'] = htmlspecialchars_uni($user['reason']);
$altbg = alt_trow();
$regdate = my_date($mybb->settings['dateformat'], $user['regdate']);

 
		$user['username'] = htmlspecialchars_uni($user['username']);

		$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
eval("\$users .= \"".$templates->get("managegroup_joinrequests_request")."\";");
}

		$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
eval("\$users .= \"".$templates->get("managegroup_joinrequests_request")."\";");
}

Zeile 235Zeile 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 280Zeile 283
	elseif($usergroup['type'] == 3)
{
$usergrouptype = $lang->group_public_not_moderated;

	elseif($usergroup['type'] == 3)
{
$usergrouptype = $lang->group_public_not_moderated;

	}

	}

	elseif($usergroup['type'] == 2)
{
$usergrouptype = $lang->group_private;

	elseif($usergroup['type'] == 2)
{
$usergrouptype = $lang->group_private;

Zeile 309Zeile 312
		$leader_count = $db->num_rows($query);
while($leader = $db->fetch_array($query))
{

		$leader_count = $db->num_rows($query);
while($leader = $db->fetch_array($query))
{

			$leader_name = format_name(htmlspecialchars_uni($leader['username']), $leader['usergroup'], $leader['displaygroup']);


			$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'];

			$leader_profile_link = build_profile_link($leader_name, $leader['uid']);

$leaders_array[] = $leader['uid'];

Zeile 345Zeile 349

$perpage = (int)$mybb->settings['membersperpage'];
if($perpage < 1)


$perpage = (int)$mybb->settings['membersperpage'];
if($perpage < 1)

	{

	{

		$perpage = 20;

		$perpage = 20;

	}


	}


	$page = $mybb->get_input('page', MyBB::INPUT_INT);
if($page && $page > 0)

	$page = $mybb->get_input('page', MyBB::INPUT_INT);
if($page && $page > 0)

	{
$start = ($page-1) *$perpage;







	{
$start = ($page-1) * $perpage;
$pages = ceil($numusers / $perpage);
if($page > $pages)
{
$start = 0;
$page = 1;
}

	}
else

	}
else

	{

	{

		$start = 0;
$page = 1;
}
$multipage = multipage($numusers, $perpage, $page, "managegroup.php?gid=".$gid);

		$start = 0;
$page = 1;
}
$multipage = multipage($numusers, $perpage, $page, "managegroup.php?gid=".$gid);

 

switch($db->type)
{
case "pgsql":
case "sqlite":
$query = $db->simple_select("users", "*", "','||additionalgroups||',' LIKE '%,{$gid},%' OR usergroup='{$gid}'", array('order_by' => 'username', 'limit' => $perpage, 'limit_start' => $start));
break;
default:
$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 368Zeile 390
		$post = $user;
$sendpm = $email = '';
if($mybb->settings['enablepms'] == 1 && $post['receivepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false)

		$post = $user;
$sendpm = $email = '';
if($mybb->settings['enablepms'] == 1 && $post['receivepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false)

		{

		{

			eval("\$sendpm = \"".$templates->get("postbit_pm")."\";");
}


			eval("\$sendpm = \"".$templates->get("postbit_pm")."\";");
}


Zeile 381Zeile 403
			$email = '';
}


			$email = '';
}


 
		$user['username'] = htmlspecialchars_uni($user['username']);

		$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
if(in_array($user['uid'], $leaders_array))

		$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
if(in_array($user['uid'], $leaders_array))

Zeile 393Zeile 416
		}

// Checkbox for user management - only if current user is allowed

		}

// Checkbox for user management - only if current user is allowed

		$checkbox = '';










		$checkbox = $disabled = '';
if($user['usergroup'] == $gid)
{
$disabled = 'disabled="disabled"';
}
else
{
++$removeable_count;
}


		if($groupleader['canmanagemembers'] == 1)
{
eval("\$checkbox = \"".$templates->get("managegroup_user_checkbox")."\";");

		if($groupleader['canmanagemembers'] == 1)
{
eval("\$checkbox = \"".$templates->get("managegroup_user_checkbox")."\";");

		}


		}


		eval("\$users .= \"".$templates->get("managegroup_user")."\";");

		eval("\$users .= \"".$templates->get("managegroup_user")."\";");

	}

	}


if(!$users)
{


if(!$users)
{

Zeile 412Zeile 444
	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)