Vergleich managegroup.php - 1.8.4 - 1.8.21

  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 299Zeile 300
		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 306Zeile 310
		$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']);

			$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 324Zeile 331
		}

eval("\$group_leaders = \"".$templates->get("managegroup_leaders")."\";");

		}

eval("\$group_leaders = \"".$templates->get("managegroup_leaders")."\";");

	}


	}


	switch($db->type)
{
case "pgsql":

	switch($db->type)
{
case "pgsql":

Zeile 337Zeile 344
	}

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

	}

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

	/*if(!$numusers && !$numrequests)
{
error($lang->group_no_members);
}*/
$perpage = $mybb->settings['membersperpage'];




$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)
{

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







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

	}
else
{

	}
else
{

Zeile 353Zeile 368
		$page = 1;
}
$multipage = multipage($numusers, $perpage, $page, "managegroup.php?gid=".$gid);

		$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));
}


	$users = "";
while($user = $db->fetch_array($query))
{

	$users = "";
while($user = $db->fetch_array($query))
{

Zeile 363Zeile 389
		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'] = htmlspecialchars_uni($user['username']);

		$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;
}