Gazelle/sections/tools/data/special_users.php

36 lines
727 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
2013-04-05 08:00:43 +00:00
if (!check_perms('admin_manage_permissions')) {
error(403);
}
2012-10-11 08:00:15 +00:00
View::show_header('Special Users List');
2011-03-28 14:21:28 +00:00
?>
<div class="thin">
<?
2013-04-05 08:00:43 +00:00
$DB->query("SELECT m.ID
FROM users_main AS m
WHERE m.CustomPermissions != ''
AND m.CustomPermissions != 'a:0:{}'");
if ($DB->record_count()) {
2011-03-28 14:21:28 +00:00
?>
<table width="100%">
<tr class="colhead">
<td>User</td>
<td>Access</td>
</tr>
<?
2013-04-05 08:00:43 +00:00
while (list($UserID)=$DB->next_record()) {
2011-03-28 14:21:28 +00:00
?>
<tr>
2012-10-11 08:00:15 +00:00
<td><?=Users::format_username($UserID, true, true, true, true)?></td>
2011-03-28 14:21:28 +00:00
<td><a href="user.php?action=permissions&amp;userid=<?=$UserID?>">Manage</a></td>
</tr>
<? } ?>
</table>
2013-04-05 08:00:43 +00:00
<?
} else { ?>
2011-03-28 14:21:28 +00:00
<h2 align="center">There are no special users.</h2>
2013-04-05 08:00:43 +00:00
<?
} ?>
2011-03-28 14:21:28 +00:00
</div>
2012-10-11 08:00:15 +00:00
<? View::show_footer(); ?>