Vergleich admin/modules/user/admin_permissions.php - 1.8.7 - 1.8.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 210Zeile 210

$admin = $db->fetch_array($query);
$permission_data = get_admin_permissions($uid, $admin['gid']);


$admin = $db->fetch_array($query);
$permission_data = get_admin_permissions($uid, $admin['gid']);

		$title = $admin['username'];

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

		$page->add_breadcrumb_item($lang->user_permissions, "index.php?module=user-admin_permissions");
}
elseif($uid < 0)

		$page->add_breadcrumb_item($lang->user_permissions, "index.php?module=user-admin_permissions");
}
elseif($uid < 0)

Zeile 339Zeile 339
			$perm_type = "default";
}
$uid = -$group['gid'];

			$perm_type = "default";
}
$uid = -$group['gid'];

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





$group['title'] = htmlspecialchars_uni($group['title']);

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


if($group['permissions'] != "")


if($group['permissions'] != "")

		{

		{

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


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


Zeile 353Zeile 356
		else
{
$table->construct_cell("<a href=\"index.php?module=user-admin_permissions&amp;action=edit&amp;uid={$uid}\">{$lang->set_permissions}</a>", array("class" => "align_center"));

		else
{
$table->construct_cell("<a href=\"index.php?module=user-admin_permissions&amp;action=edit&amp;uid={$uid}\">{$lang->set_permissions}</a>", array("class" => "align_center"));

		}
$table->construct_row();

		}
$table->construct_row();

	}

if($table->num_rows() == 0)

	}

if($table->num_rows() == 0)

Zeile 384Zeile 387
	$page->output_header($lang->user_permissions);

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

	$page->output_header($lang->user_permissions);

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





	$table = new Table;
$table->construct_header($lang->user);
$table->construct_header($lang->last_active, array("class" => "align_center", "width" => 200));

	$table = new Table;
$table->construct_header($lang->user);
$table->construct_header($lang->last_active, array("class" => "align_center", "width" => 200));

Zeile 430Zeile 433
			ORDER BY g.title ASC
");
while($group = $db->fetch_array($query))

			ORDER BY g.title ASC
");
while($group = $db->fetch_array($query))

		{

		{

			$group_permissions[$group['gid']] = $group['permissions'];
}


			$group_permissions[$group['gid']] = $group['permissions'];
}


Zeile 443Zeile 446
		");
while($admin = $db->fetch_array($query))
{

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

 
			$perm_type = "default";


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

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

Zeile 458Zeile 463
						$perm_type = "group";
break;
}

						$perm_type = "group";
break;
}

				}

if(!$group_permissions)
{
$perm_type = "default";

 
				}
}


				}
}


Zeile 472Zeile 472
			// Primary usergroup?
if($usergroups[$admin['usergroup']]['cancp'] == 1)
{

			// Primary usergroup?
if($usergroups[$admin['usergroup']]['cancp'] == 1)
{

				$usergroup_list[] = "<i>".$usergroups[$admin['usergroup']]['title']."</i>";

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

			}

// Secondary usergroups?

			}

// Secondary usergroups?

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

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

						$usergroup_list[] = $usergroups[$gid]['title'];

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

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


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


			$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}\">{$admin['username']}</a></strong><br /><small>{$usergroup_list}</small></div>");


			$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(my_date('relative', $admin['lastactive']), array("class" => "align_center"));



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