Vergleich admin/modules/user/admin_permissions.php - 1.8.17 - 1.8.27

  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 122Zeile 122
	{
foreach($mybb->input['permissions'] as $module => $actions)
{

	{
foreach($mybb->input['permissions'] as $module => $actions)
{

			$no_access = 0;
foreach($actions as $action => $access)

			if(is_array($actions))


			{

			{

				if($access == 0)


				$no_access = 0;
foreach($actions as $action => $access)

				{

				{

					++$no_access;









					if($access == 0)
{
++$no_access;
}
}
// User can't access any actions in this module - just disallow it completely
if($no_access == count($actions))
{
unset($mybb->input['permissions'][$module]);

				}

				}

			}
// User can't access any actions in this module - just disallow it completely
if($no_access == count($actions))
{
unset($mybb->input['permissions'][$module]);

 
			}
}


			}
}


Zeile 246Zeile 249
		);

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

		);

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

	}

$form = new Form("index.php?module=user-admin_permissions&action=edit", "post", "edit");


	}

$form = new Form("index.php?module=user-admin_permissions&action=edit", "post", "edit");


	echo $form->generate_hidden_field("uid", $uid);

// Fetch all of the modules we have

	echo $form->generate_hidden_field("uid", $uid);

// Fetch all of the modules we have

Zeile 350Zeile 353
			$popup->add_item($lang->edit_permissions, "index.php?module=user-admin_permissions&action=edit&uid={$uid}");

// Check permissions for Revoke

			$popup->add_item($lang->edit_permissions, "index.php?module=user-admin_permissions&action=edit&uid={$uid}");

// Check permissions for Revoke

			$popup->add_item($lang->revoke_permissions, "index.php?module=user-admin_permissions&action=delete&uid={$uid}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, 'Are you sure you wish to revoke this group\'s permissions?')");

			$popup->add_item($lang->revoke_permissions, "index.php?module=user-admin_permissions&action=delete&uid={$uid}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '$lang->confirm_perms_deletion3')");

			$table->construct_cell($popup->fetch(), array("class" => "align_center"));
}
else

			$table->construct_cell($popup->fetch(), array("class" => "align_center"));
}
else

Zeile 447Zeile 450
		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 481Zeile 484
			{
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 490Zeile 493
			$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"));