Vergleich managegroup.php - 1.8.5 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 299Zeile 299
		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))
{
$loop = 1;

	if($db->num_rows($query))
{
$loop = 1;

Zeile 308Zeile 311
		{
$leader_name = format_name(htmlspecialchars_uni($leader['username']), $leader['usergroup'], $leader['displaygroup']);
$leader_profile_link = build_profile_link($leader_name, $leader['uid']);

		{
$leader_name = format_name(htmlspecialchars_uni($leader['username']), $leader['usergroup'], $leader['displaygroup']);
$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 334Zeile 339
			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);

	$numusers = $db->num_rows($query);

	



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

	$perpage = (int)$mybb->settings['membersperpage'];
if($perpage < 1)
{
$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)
{

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

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

		}

		}


if($user['hideemail'] != 1)


if($user['hideemail'] != 1)

		{

		{

			eval("\$email = \"".$templates->get("postbit_email")."\";");

			eval("\$email = \"".$templates->get("postbit_email")."\";");

		}

		}

		else
{
$email = '';
}

		else
{
$email = '';
}

		$query1 = $db->simple_select("groupleaders", "uid", "uid='{$user['uid']}' AND gid='{$gid}'");
$isleader = $db->fetch_array($query1);




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

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

		if($isleader['uid'])

		if(in_array($user['uid'], $leaders_array))

		{
$leader = $lang->leader;
}

		{
$leader = $lang->leader;
}