Vergleich managegroup.php - 1.01 - 1.17

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


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


$gid = intval($mybb->input['gid']);

$gid = $mybb->input['gid'] = intval($mybb->input['gid']);


$query = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='$gid' AND type <> 1");
$usergroup = $db->fetch_array($query);


$query = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='$gid' AND type <> 1");
$usergroup = $db->fetch_array($query);

Zeile 70Zeile 70
	{
foreach($mybb->input['request'] as $uid => $what)
{

	{
foreach($mybb->input['request'] as $uid => $what)
{

 
			$uid = intval($uid);

			if($what == "accept")
{
join_usergroup($uid, $gid);

			if($what == "accept")
{
join_usergroup($uid, $gid);

Zeile 122Zeile 123
	{
foreach($mybb->input['removeuser'] as $uid)
{

	{
foreach($mybb->input['removeuser'] as $uid)
{

			leave_usergroup($uid, $mybb->input['gid']);

			leave_usergroup(intval($uid), $mybb->input['gid']);

		}
}


		}
}