Vergleich admin/modules/user/admin_permissions.php - 1.8.25 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49
		admin_redirect("index.php?module=user-admin_permissions");
}


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


	if($mybb->input['no'])

	if($mybb->get_input('no'))

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

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

Zeile 297Zeile 297
		$form_container = new FormContainer("{$module['name']}");
foreach($module['permissions'] as $action => $title)
{

		$form_container = new FormContainer("{$module['name']}");
foreach($module['permissions'] as $action => $title)
{

 
			if(!isset($permission_data[$key][$action]))
{
$permission_data[$key][$action] = 0;
}


			$form_container->output_row($title, "", $form->generate_yes_no_radio('permissions['.$key.']['.$action.']', (int)$permission_data[$key][$action], array('yes' => 1, 'no' => 0)), 'permissions['.$key.']['.$action.']');
}
$form_container->end();

			$form_container->output_row($title, "", $form->generate_yes_no_radio('permissions['.$key.']['.$action.']', (int)$permission_data[$key][$action], array('yes' => 1, 'no' => 0)), 'permissions['.$key.']['.$action.']');
}
$form_container->end();

Zeile 306Zeile 311
	$buttons[] = $form->generate_submit_button($lang->update_permissions);
$form->output_submit_wrapper($buttons);
$form->end();

	$buttons[] = $form->generate_submit_button($lang->update_permissions);
$form->output_submit_wrapper($buttons);
$form->end();





	$page->output_footer();
}

	$page->output_footer();
}





if($mybb->input['action'] == "group")
{
$plugins->run_hooks("admin_user_admin_permissions_group");

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

if($mybb->input['action'] == "group")
{
$plugins->run_hooks("admin_user_admin_permissions_group");

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





	$page->output_nav_tabs($sub_tabs, 'group_permissions');

$table = new Table;

	$page->output_nav_tabs($sub_tabs, 'group_permissions');

$table = new Table;

Zeile 450Zeile 455
		while($admin = $db->fetch_array($query))
{
$perm_type = "default";

		while($admin = $db->fetch_array($query))
{
$perm_type = "default";

			



			if($admin['permissions'] != "")
{
$perm_type = "user";

			if($admin['permissions'] != "")
{
$perm_type = "user";

Zeile 473Zeile 478

// Build a list of group memberships that have access to the Admin CP
// Primary usergroup?


// Build a list of group memberships that have access to the Admin CP
// Primary usergroup?

			if($usergroups[$admin['usergroup']]['cancp'] == 1)

			if(!empty($usergroups[$admin['usergroup']]) && $usergroups[$admin['usergroup']]['cancp'] == 1)

			{
$usergroup_list[] = "<i>".htmlspecialchars_uni($usergroups[$admin['usergroup']]['title'])."</i>";
}

			{
$usergroup_list[] = "<i>".htmlspecialchars_uni($usergroups[$admin['usergroup']]['title'])."</i>";
}

Zeile 484Zeile 489
			{
foreach($additional_groups as $gid)
{

			{
foreach($additional_groups as $gid)
{

					if($usergroups[$gid]['cancp'] == 1)

					if(!empty($usergroups[$gid]) && $usergroups[$gid]['cancp'] == 1)

					{
$usergroup_list[] = htmlspecialchars_uni($usergroups[$gid]['title']);
}

					{
$usergroup_list[] = htmlspecialchars_uni($usergroups[$gid]['title']);
}

Zeile 493Zeile 498
			$usergroup_list = implode($lang->comma, $usergroup_list);

$username = htmlspecialchars_uni($admin['username']);

			$usergroup_list = implode($lang->comma, $usergroup_list);

$username = htmlspecialchars_uni($admin['username']);

			$table->construct_cell("<div class=\"float_right\"><img src=\"styles/{$page->style}/images/icons/{$perm_type}.png\" title=\"{$lang->perms_type_user}\" alt=\"{$perm_type}\" /></div><div><strong><a href=\"index.php?module=user-admin_permissions&amp;action=edit&amp;uid={$admin['uid']}\" title=\"{$lang->edit_user}\">{$username}</a></strong><br /><small>{$usergroup_list}</small></div>");

			$table->construct_cell("<div class=\"float_right\"><img src=\"styles/{$page->style}/images/icons/{$perm_type}.png\" title=\"{$lang->permissions_type_user}\" alt=\"{$perm_type}\" /></div><div><strong><a href=\"index.php?module=user-admin_permissions&amp;action=edit&amp;uid={$admin['uid']}\" title=\"{$lang->edit_user}\">{$username}</a></strong><br /><small>{$usergroup_list}</small></div>");


$table->construct_cell(my_date('relative', $admin['lastactive']), array("class" => "align_center"));



$table->construct_cell(my_date('relative', $admin['lastactive']), array("class" => "align_center"));