Vergleich admin/modules/forum/management.php - 1.8.33 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 317Zeile 317
		if(!$errors)
{
$fid = $mybb->get_input('fid', MyBB::INPUT_INT);

		if(!$errors)
{
$fid = $mybb->get_input('fid', MyBB::INPUT_INT);

			$forum = get_forum($fid);

			$forum = get_forum($fid, 1);

			if($mod_data['isgroup'])
{
$mod = $groupscache[$mod_data['id']];

			if($mod_data['isgroup'])
{
$mod = $groupscache[$mod_data['id']];

Zeile 498Zeile 498
		$pid = $mybb->get_input('pid', MyBB::INPUT_INT);
$fid = $mybb->get_input('fid', MyBB::INPUT_INT);
$gid = $mybb->get_input('gid', MyBB::INPUT_INT);

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

		$forum = get_forum($fid);

		$forum = get_forum($fid, 1);


if((!$fid || !$gid) && $pid)
{


if((!$fid || !$gid) && $pid)
{

Zeile 506Zeile 506
			$result = $db->fetch_array($query);
$fid = $result['fid'];
$gid = $result['gid'];

			$result = $db->fetch_array($query);
$fid = $result['fid'];
$gid = $result['gid'];

			$forum = get_forum($fid);

			$forum = get_forum($fid, 1);

		}

$update_array = $field_list = array();
$fields_array = $db->show_fields_from("forumpermissions");

		}

$update_array = $field_list = array();
$fields_array = $db->show_fields_from("forumpermissions");

		if(is_array($mybb->input['permissions']))

		if(isset($mybb->input['permissions']))

		{
// User has set permissions for this group...
foreach($fields_array as $field)

		{
// User has set permissions for this group...
foreach($fields_array as $field)

Zeile 1922Zeile 1922
	$mod = $db->fetch_array($query);

// Does the forum not exist?

	$mod = $db->fetch_array($query);

// Does the forum not exist?

	if(!$mod['mid'])

	if(!$mod)

	{
flash_message($lang->error_invalid_moderator, 'error');
admin_redirect("index.php?module=forum-management&fid={$fid}");

	{
flash_message($lang->error_invalid_moderator, 'error');
admin_redirect("index.php?module=forum-management&fid={$fid}");

Zeile 1965Zeile 1965

$cache->update_moderators();



$cache->update_moderators();


		$forum = get_forum($fid);

		$forum = get_forum($fid, 1);


// Log admin action
if($isgroup)


// Log admin action
if($isgroup)

Zeile 1992Zeile 1992
	$forum = $db->fetch_array($query);

// Does the forum not exist?

	$forum = $db->fetch_array($query);

// Does the forum not exist?

	if(!$forum['fid'])

	if(!$forum)

	{
flash_message($lang->error_invalid_forum, 'error');
admin_redirect("index.php?module=forum-management");

	{
flash_message($lang->error_invalid_forum, 'error');
admin_redirect("index.php?module=forum-management");

Zeile 2009Zeile 2009
	if($mybb->request_method == "post")
{
$fid = $mybb->get_input('fid', MyBB::INPUT_INT);

	if($mybb->request_method == "post")
{
$fid = $mybb->get_input('fid', MyBB::INPUT_INT);

		$forum_info = get_forum($fid);

		$forum = get_forum($fid, 1);


$delquery = "";
switch($db->type)


$delquery = "";
switch($db->type)

Zeile 2108Zeile 2108
	$fid = $mybb->get_input('fid', MyBB::INPUT_INT);
if($fid)
{

	$fid = $mybb->get_input('fid', MyBB::INPUT_INT);
if($fid)
{

		$forum = get_forum($fid);

		$forum = get_forum($fid, 1);

	}

$plugins->run_hooks("admin_forum_management_start");

	}

$plugins->run_hooks("admin_forum_management_start");

Zeile 2193Zeile 2193
		}
elseif($mybb->get_input('add') == "moderators")
{

		}
elseif($mybb->get_input('add') == "moderators")
{

			$forum = get_forum($fid);

			$forum = get_forum($fid, 1);

			if(!$forum)
{
flash_message($lang->error_invalid_forum, 'error');

			if(!$forum)
{
flash_message($lang->error_invalid_forum, 'error');

Zeile 2499Zeile 2499
					$perms = $existing_permissions[$usergroup['gid']];
$default_checked = false;
}

					$perms = $existing_permissions[$usergroup['gid']];
$default_checked = false;
}

				elseif(is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['fid']][$usergroup['gid']]) && $cached_forum_perms[$forum['fid']][$usergroup['gid']])

				elseif(isset($forum['fid']) && is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['fid']][$usergroup['gid']]) && $cached_forum_perms[$forum['fid']][$usergroup['gid']])

				{
$perms = $cached_forum_perms[$forum['fid']][$usergroup['gid']];
$default_checked = true;
}

				{
$perms = $cached_forum_perms[$forum['fid']][$usergroup['gid']];
$default_checked = true;
}

				else if(is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['pid']][$usergroup['gid']]) && $cached_forum_perms[$forum['pid']][$usergroup['gid']])

				else if(isset($forum['pid']) && is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['pid']][$usergroup['gid']]) && $cached_forum_perms[$forum['pid']][$usergroup['gid']])

				{
$perms = $cached_forum_perms[$forum['pid']][$usergroup['gid']];
$default_checked = true;

				{
$perms = $cached_forum_perms[$forum['pid']][$usergroup['gid']];
$default_checked = true;