Vergleich managegroup.php - 1.8.25 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 40Zeile 40
$query = $db->simple_select("groupleaders", "*", "uid='{$mybb->user['uid']}' AND gid='{$gid}'");
$groupleader = $db->fetch_array($query);


$query = $db->simple_select("groupleaders", "*", "uid='{$mybb->user['uid']}' AND gid='{$gid}'");
$groupleader = $db->fetch_array($query);


if(!$groupleader['uid'] && $mybb->usergroup['cancp'] != 1)

if(!$groupleader && $mybb->usergroup['cancp'] != 1)

{
error($lang->not_leader_of_this_group);
}

{
error($lang->not_leader_of_this_group);
}

Zeile 63Zeile 63

$user = get_user_by_username($mybb->get_input('username'), $options);



$user = get_user_by_username($mybb->get_input('username'), $options);


	if($user['uid'])

	if($user)

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))

Zeile 101Zeile 101

$user = get_user_by_username($mybb->get_input('inviteusername'), $options);



$user = get_user_by_username($mybb->get_input('inviteusername'), $options);


	if($user['uid'])

	if($user)

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))
{
$query = $db->simple_select("joinrequests", "rid", "uid = '".(int)$user['uid']."' AND gid = '".(int)$gid."'", array("limit" => 1));
$pendinginvite = $db->fetch_array($query);

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))
{
$query = $db->simple_select("joinrequests", "rid", "uid = '".(int)$user['uid']."' AND gid = '".(int)$gid."'", array("limit" => 1));
$pendinginvite = $db->fetch_array($query);

			if($pendinginvite['rid'])

			if($pendinginvite)

			{
error($lang->error_alreadyinvited);
}

			{
error($lang->error_alreadyinvited);
}

Zeile 197Zeile 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 287Zeile 287
	elseif($usergroup['type'] == 2)
{
$usergrouptype = $lang->group_private;

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

	}

	}

	else
{
$usergrouptype = $lang->group_default;

	else
{
$usergrouptype = $lang->group_default;

Zeile 302Zeile 302
		LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=g.uid)
WHERE g.gid = '{$gid}'
");

		LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=g.uid)
WHERE g.gid = '{$gid}'
");





	$leaders_array = array();

if($db->num_rows($query))

	$leaders_array = array();

if($db->num_rows($query))

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





			// Get commas...
if($loop != $leader_count)
{

			// Get commas...
if($loop != $leader_count)
{

Zeile 407Zeile 407
		$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))

		{

		{

			$leader = $lang->leader;

			$leader = $lang->leader;

		}
else
{

		}
else
{

			$leader = '';
}


			$leader = '';
}


Zeile 422Zeile 422
			$disabled = 'disabled="disabled"';
}
else

			$disabled = 'disabled="disabled"';
}
else

		{

		{

			++$removeable_count;
}


			++$removeable_count;
}


Zeile 430Zeile 430
		{
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")."\";");
}


Zeile 439Zeile 439
		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")."\";");