Vergleich managegroup.php - 1.8.3 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 19Zeile 19
// Load language files
$lang->load("managegroup");


// Load language files
$lang->load("managegroup");


$gid = $mybb->get_input('gid', 1);

$gid = $mybb->get_input('gid', MyBB::INPUT_INT);

if(!isset($groupscache[$gid]))
{
error($lang->invalid_group);
}
$usergroup = $groupscache[$gid];

if(!isset($groupscache[$gid]))
{
error($lang->invalid_group);
}
$usergroup = $groupscache[$gid];

$lang->nav_group_management = $lang->sprintf($lang->nav_group_management, $usergroup['title']);

$lang->nav_group_management = $lang->sprintf($lang->nav_group_management, htmlspecialchars_uni($usergroup['title']));

add_breadcrumb($lang->nav_group_memberships, "usercp.php?action=usergroups");
add_breadcrumb($lang->nav_group_management, "managegroup.php?gid=$gid");


add_breadcrumb($lang->nav_group_memberships, "usercp.php?action=usergroups");
add_breadcrumb($lang->nav_group_management, "managegroup.php?gid=$gid");


Zeile 169Zeile 169
	$plugins->run_hooks("managegroup_do_joinrequests_start");

$uidin = null;

	$plugins->run_hooks("managegroup_do_joinrequests_start");

$uidin = null;

	if(is_array($mybb->get_input('request', 2)))

	if(is_array($mybb->get_input('request', MyBB::INPUT_ARRAY)))

	{
$uidin = array();

	{
$uidin = array();

		foreach($mybb->get_input('request', 2) as $uid => $what)

		foreach($mybb->get_input('request', MyBB::INPUT_ARRAY) as $uid => $what)

		{
if($what == "accept")
{

		{
if($what == "accept")
{

Zeile 219Zeile 219
	{
error($lang->no_requests);
}

	{
error($lang->no_requests);
}

	$lang->join_requests = $lang->sprintf($lang->join_requests_title,htmlspecialchars_uni($usergroup['title']));

	$lang->join_requests = $lang->sprintf($lang->join_requests_title, htmlspecialchars_uni($usergroup['title']));


$plugins->run_hooks("managegroup_joinrequests_end");



$plugins->run_hooks("managegroup_joinrequests_end");


Zeile 238Zeile 238

$plugins->run_hooks("managegroup_do_manageusers_start");



$plugins->run_hooks("managegroup_do_manageusers_start");


	if(is_array($mybb->get_input('removeuser', 2)))

	if(is_array($mybb->get_input('removeuser', MyBB::INPUT_ARRAY)))

	{

	{

		foreach($mybb->get_input('removeuser', 2) as $uid)

		foreach($mybb->get_input('removeuser', MyBB::INPUT_ARRAY) as $uid)

		{
leave_usergroup($uid, $gid);
}

		{
leave_usergroup($uid, $gid);
}

Zeile 258Zeile 258
{
$plugins->run_hooks("managegroup_start");


{
$plugins->run_hooks("managegroup_start");


	$lang->members_of = $lang->sprintf($lang->members_of, $usergroup['title']);
$lang->add_member = $lang->sprintf($lang->add_member, $usergroup['title']);
$lang->invite_member = $lang->sprintf($lang->invite_member, $usergroup['title']);

	$lang->members_of = $lang->sprintf($lang->members_of, htmlspecialchars_uni($usergroup['title']));
$lang->add_member = $lang->sprintf($lang->add_member, htmlspecialchars_uni($usergroup['title']));
$lang->invite_member = $lang->sprintf($lang->invite_member, htmlspecialchars_uni($usergroup['title']));

	$joinrequests = '';
if($usergroup['type'] == 5)
{

	$joinrequests = '';
if($usergroup['type'] == 5)
{

Zeile 337Zeile 337
	}

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

	}

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

	/*if(!$numusers && !$numrequests)



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

	{

	{

		error($lang->group_no_members);
}*/
$perpage = $mybb->settings['membersperpage'];
$page = $mybb->get_input('page', 1);

		$perpage = 20;
}

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

	if($page && $page > 0)
{
$start = ($page-1) *$perpage;

	if($page && $page > 0)
{
$start = ($page-1) *$perpage;