Vergleich showteam.php - 1.8.16 - 1.8.35

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 86Zeile 86
		if($db->type == "pgsql")
{
$query_part .= "'$visible_group' = ANY (string_to_array(additionalgroups, ',')) OR ";

		if($db->type == "pgsql")
{
$query_part .= "'$visible_group' = ANY (string_to_array(additionalgroups, ',')) OR ";

 
		}
else if($db->type == "sqlite")
{
$query_part .= "'$visible_group' IN (additionalgroups) OR ";

		}
else
{
$query_part .= "FIND_IN_SET('$visible_group', additionalgroups) OR ";

		}
else
{
$query_part .= "FIND_IN_SET('$visible_group', additionalgroups) OR ";

		}
}
}


		}
}
}


// Include group leaders if set to
if($mybb->settings['showgroupleaders'])
{

// Include group leaders if set to
if($mybb->settings['showgroupleaders'])
{

Zeile 115Zeile 119
		$leadlist = implode(",", $leadlist);

$query = $db->simple_select("usergroups", "gid, title, namestyle", "gid IN ($leadlist)");

		$leadlist = implode(",", $leadlist);

$query = $db->simple_select("usergroups", "gid, title, namestyle", "gid IN ($leadlist)");

		unset($leadlist);

		$leadlist = array();


while($leaded_group = $db->fetch_array($query))
{


while($leaded_group = $db->fetch_array($query))
{

Zeile 136Zeile 140
		$users_in = implode(",", array_keys(array_flip(explode(",", implode(",", array_keys($leaderlist)).",".$users_in))));
}
}

		$users_in = implode(",", array_keys(array_flip(explode(",", implode(",", array_keys($leaderlist)).",".$users_in))));
}
}





$query = $db->simple_select("users", "uid, username, displaygroup, usergroup, additionalgroups, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away", $query_part."displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));

while($user = $db->fetch_array($query))

$query = $db->simple_select("users", "uid, username, displaygroup, usergroup, additionalgroups, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away", $query_part."displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));

while($user = $db->fetch_array($query))

Zeile 144Zeile 148
	// If this user is a moderator
if(isset($moderators[$user['uid']]))
{

	// If this user is a moderator
if(isset($moderators[$user['uid']]))
{

 
		$forumlist = '';

		foreach($moderators[$user['uid']] as $forum)
{
if($forum_permissions[$forum['fid']]['canview'] == 1)

		foreach($moderators[$user['uid']] as $forum)
{
if($forum_permissions[$forum['fid']]['canview'] == 1)

Zeile 184Zeile 189
		$group = $user['usergroup'];
}


		$group = $user['usergroup'];
}


	if($usergroups[$group] && $group != 6)

	if(isset($usergroups[$group]) && $group != 6)

	{
$usergroups[$group]['user_list'][$user['uid']] = $user;
}

	{
$usergroups[$group]['user_list'][$user['uid']] = $user;
}

Zeile 279Zeile 284
		}
}


		}
}


	if($modrows && in_array($usergroup['gid'], [0,6]))

	if($modrows && in_array($usergroup['gid'], array(0,6)))

	{
$modscope = $usergroup['gid'] == 6 ? $lang->mod_forums : $lang->mod_groups;
eval("\$grouplist .= \"".$templates->get("showteam_moderators")."\";");

	{
$modscope = $usergroup['gid'] == 6 ? $lang->mod_forums : $lang->mod_groups;
eval("\$grouplist .= \"".$templates->get("showteam_moderators")."\";");