Vergleich admin/modules/user/groups.php - 1.8.11 - 1.8.20

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 200Zeile 200
				join_usergroup($uid, $group['gid']);
}
// Log admin action

				join_usergroup($uid, $group['gid']);
}
// Log admin action

			log_admin_action("approve", htmlspecialchars_uni($group['title']), $group['gid']);

			log_admin_action("approve", $group['title'], $group['gid']);

			$message = $lang->success_selected_requests_approved;
}
else
{
// Log admin action

			$message = $lang->success_selected_requests_approved;
}
else
{
// Log admin action

			log_admin_action("deny", htmlspecialchars_uni($group['title']), $group['gid']);

			log_admin_action("deny", $group['title'], $group['gid']);

			$message = $lang->success_selected_requests_denied;
}


			$message = $lang->success_selected_requests_denied;
}


Zeile 266Zeile 266

$form = new Form("index.php?module=user-groups&action=join_requests&gid={$group['gid']}", "post");
$table = new Table;


$form = new Form("index.php?module=user-groups&action=join_requests&gid={$group['gid']}", "post");
$table = new Table;

	$table->construct_header($form->generate_check_box("checkall", 1, "", array('class' => 'checkall')), array('width' => 1));

	$table->construct_header($form->generate_check_box("allbox", 1, "", array('class' => 'checkall')), array('width' => 1));

	$table->construct_header($lang->users);
$table->construct_header($lang->reason);
$table->construct_header($lang->date_requested, array("class" => 'align_center', "width" => 200));

	$table->construct_header($lang->users);
$table->construct_header($lang->reason);
$table->construct_header($lang->date_requested, array("class" => 'align_center', "width" => 200));

Zeile 365Zeile 365
		$cache->update_groupleaders();

// Log admin action

		$cache->update_groupleaders();

// Log admin action

		log_admin_action($user['uid'], htmlspecialchars_uni($user['username']), $group['gid'], htmlspecialchars_uni($group['title']));

		log_admin_action($user['uid'], $user['username'], $group['gid'], $group['title']);


$username = htmlspecialchars_uni($user['username']);
flash_message("{$username} ".$lang->success_user_made_leader, 'success');


$username = htmlspecialchars_uni($user['username']);
flash_message("{$username} ".$lang->success_user_made_leader, 'success');

Zeile 573Zeile 573
		$cache->update_groupleaders();

// Log admin action

		$cache->update_groupleaders();

// Log admin action

		log_admin_action($leader['uid'], htmlspecialchars_uni($leader['username']), $group['gid'], htmlspecialchars_uni($group['title']));

		log_admin_action($leader['uid'], $leader['username'], $group['gid'], $group['title']);


flash_message($lang->success_group_leader_deleted, 'success');
admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");


flash_message($lang->success_group_leader_deleted, 'success');
admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");

Zeile 620Zeile 620
		$cache->update_groupleaders();

// Log admin action

		$cache->update_groupleaders();

// Log admin action

		log_admin_action($leader['uid'], htmlspecialchars_uni($leader['username']), $group['gid'], htmlspecialchars_uni($group['title']));

		log_admin_action($leader['uid'], $leader['username'], $group['gid'], $group['title']);


flash_message($lang->success_group_leader_updated, 'success');
admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");


flash_message($lang->success_group_leader_updated, 'success');
admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");

Zeile 741Zeile 741
			$cache->update_forumpermissions();

// Log admin action

			$cache->update_forumpermissions();

// Log admin action

			log_admin_action($gid, htmlspecialchars_uni($mybb->input['title']));

			log_admin_action($gid, $mybb->input['title']);





			flash_message($lang->success_group_created, 'success');










			$groups = $cache->read('usergroups');
$grouptitles = array_column($groups, 'title');

$message = $lang->success_group_created;
if(in_array($mybb->input['title'], $grouptitles) && count(array_keys($grouptitles, $mybb->input['title'])) > 1)
{
$message = $lang->sprintf($lang->success_group_created_duplicate_title, htmlspecialchars_uni($mybb->input['title']));
}

flash_message($message, 'success');

			admin_redirect("index.php?module=user-groups&action=edit&gid={$gid}");
}

			admin_redirect("index.php?module=user-groups&action=edit&gid={$gid}");
}

	}


	}


	$page->add_breadcrumb_item($lang->add_user_group);
$page->output_header($lang->add_user_group);

	$page->add_breadcrumb_item($lang->add_user_group);
$page->output_header($lang->add_user_group);





	$page->output_nav_tabs($sub_tabs, 'add_group');
$form = new Form("index.php?module=user-groups&action=add", "post");

if($errors)
{
$page->output_inline_error($errors);

	$page->output_nav_tabs($sub_tabs, 'add_group');
$form = new Form("index.php?module=user-groups&action=add", "post");

if($errors)
{
$page->output_inline_error($errors);

	}

	}

	else
{
$mybb->input = array_merge($mybb->input, array(

	else
{
$mybb->input = array_merge($mybb->input, array(

Zeile 771Zeile 780
	$form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->username_style, $lang->username_style_desc, $form->generate_text_box('namestyle', $mybb->input['namestyle'], array('id' => 'namestyle')), 'namestyle');
$form_container->output_row($lang->user_title, $lang->user_title_desc, $form->generate_text_box('usertitle', $mybb->input['usertitle'], array('id' => 'usertitle')), 'usertitle');

	$form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->username_style, $lang->username_style_desc, $form->generate_text_box('namestyle', $mybb->input['namestyle'], array('id' => 'namestyle')), 'namestyle');
$form_container->output_row($lang->user_title, $lang->user_title_desc, $form->generate_text_box('usertitle', $mybb->input['usertitle'], array('id' => 'usertitle')), 'usertitle');





	$options[0] = $lang->do_not_copy_permissions;
$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));
while($usergroup = $db->fetch_array($query))

	$options[0] = $lang->do_not_copy_permissions;
$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));
while($usergroup = $db->fetch_array($query))

Zeile 825Zeile 834
		{
$errors[] = $lang->error_cannot_have_both_types;
}

		{
$errors[] = $lang->error_cannot_have_both_types;
}





		if(!$errors)
{
if($mybb->input['joinable'] == 1)
{
if($mybb->input['moderate'] == 1)

		if(!$errors)
{
if($mybb->input['joinable'] == 1)
{
if($mybb->input['moderate'] == 1)

				{

				{

					$mybb->input['type'] = "4";
}
elseif($mybb->input['invite'] == 1)
{
$mybb->input['type'] = "5";

					$mybb->input['type'] = "4";
}
elseif($mybb->input['invite'] == 1)
{
$mybb->input['type'] = "5";

				}

				}

				else
{
$mybb->input['type'] = "3";
}
}
else

				else
{
$mybb->input['type'] = "3";
}
}
else

			{

			{

				$mybb->input['type'] = "2";

				$mybb->input['type'] = "2";

			}


			}


			if($usergroup['type'] == 1)
{
$mybb->input['type'] = 1;

			if($usergroup['type'] == 1)
{
$mybb->input['type'] = 1;

			}


			}


			if($mybb->input['stars'] < 1)
{
$mybb->input['stars'] = 0;

			if($mybb->input['stars'] < 1)
{
$mybb->input['stars'] = 0;

Zeile 962Zeile 971
			$cache->update_forumpermissions();

// Log admin action

			$cache->update_forumpermissions();

// Log admin action

			log_admin_action($usergroup['gid'], htmlspecialchars_uni($mybb->input['title']));










			log_admin_action($usergroup['gid'], $mybb->input['title']);

$groups = $cache->read('usergroups');
$grouptitles = array_column($groups, 'title');

$message = $lang->success_group_updated;
if(in_array($mybb->input['title'], $grouptitles) && count(array_keys($grouptitles, $mybb->input['title'])) > 1)
{
$message = $lang->sprintf($lang->success_group_updated_duplicate_title, htmlspecialchars_uni($mybb->input['title']));
}





			flash_message($lang->success_group_updated, 'success');

			flash_message($message, 'success');

			admin_redirect("index.php?module=user-groups");
}
}

			admin_redirect("index.php?module=user-groups");
}
}

Zeile 1324Zeile 1342
		$cache->update_banned();

// Log admin action

		$cache->update_banned();

// Log admin action

		log_admin_action($usergroup['gid'], htmlspecialchars_uni($usergroup['title']));

		log_admin_action($usergroup['gid'], $usergroup['title']);


flash_message($lang->success_group_deleted, 'success');
admin_redirect("index.php?module=user-groups");


flash_message($lang->success_group_deleted, 'success');
admin_redirect("index.php?module=user-groups");

Zeile 1483Zeile 1501
			$join_requests = " <small><a href=\"index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}\"><span style=\"color: red;\">({$joinrequests[$usergroup['gid']]} {$lang->outstanding_join_request})</span></a></small>";
}


			$join_requests = " <small><a href=\"index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}\"><span style=\"color: red;\">({$joinrequests[$usergroup['gid']]} {$lang->outstanding_join_request})</span></a></small>";
}


		$form_container->output_cell("<div class=\"float_right\">{$icon}</div><div><strong><a href=\"index.php?module=user-groups&amp;action=edit&amp;gid={$usergroup['gid']}\">".htmlspecialchars_uni($usergroup['title'])."</a></strong>{$join_requests}<br /><small>".htmlspecialchars_uni($usergroup['description'])."{$leaders_list}</small></div>");

		$form_container->output_cell("<div class=\"float_right\">{$icon}</div><div><strong><a href=\"index.php?module=user-groups&amp;action=edit&amp;gid={$usergroup['gid']}\">".format_name(htmlspecialchars_uni($usergroup['title']), $usergroup['gid'])."</a></strong>{$join_requests}<br /><small>".htmlspecialchars_uni($usergroup['description'])."{$leaders_list}</small></div>");


if(!$primaryusers[$usergroup['gid']])
{


if(!$primaryusers[$usergroup['gid']])
{