mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
37 lines
723 B
PHP
37 lines
723 B
PHP
<?
|
|
if (!check_perms('admin_manage_permissions')) {
|
|
error(403);
|
|
}
|
|
View::show_header('Special Users List');
|
|
?>
|
|
<div class="thin">
|
|
<?
|
|
$DB->query("
|
|
SELECT m.ID
|
|
FROM users_main AS m
|
|
WHERE m.CustomPermissions != ''
|
|
AND m.CustomPermissions != 'a:0:{}'");
|
|
if ($DB->has_results()) {
|
|
?>
|
|
<table width="100%">
|
|
<tr class="colhead">
|
|
<td>User</td>
|
|
<td>Access</td>
|
|
</tr>
|
|
<?
|
|
while (list($UserID)=$DB->next_record()) {
|
|
?>
|
|
<tr>
|
|
<td><?=Users::format_username($UserID, true, true, true, true)?></td>
|
|
<td><a href="user.php?action=permissions&userid=<?=$UserID?>">Manage</a></td>
|
|
</tr>
|
|
<? } ?>
|
|
</table>
|
|
<?
|
|
} else { ?>
|
|
<h2 align="center">There are no special users.</h2>
|
|
<?
|
|
} ?>
|
|
</div>
|
|
<? View::show_footer(); ?>
|