Gazelle/sections/tools/data/special_users.php

31 lines
697 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
if(!check_perms('admin_manage_permissions')) { error(403); }
show_header('Special Users List');
?>
<div class="thin">
<?
2012-03-28 08:00:20 +00:00
$DB->query("SELECT m.ID FROM users_main AS m
2011-03-28 14:21:28 +00:00
WHERE m.CustomPermissions != ''
AND m.CustomPermissions != 'a:0:{}'");
if($DB->record_count()) {
?>
<table width="100%">
<tr class="colhead">
<td>User</td>
<td>Access</td>
</tr>
<?
2012-03-28 08:00:20 +00:00
while(list($UserID)=$DB->next_record()) {
2011-03-28 14:21:28 +00:00
?>
<tr>
2012-03-28 08:00:20 +00:00
<td><?=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>
<? } else { ?>
<h2 align="center">There are no special users.</h2>
<? } ?>
</div>
<? show_footer(); ?>