BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

special_users.php 807B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. if (!check_perms('admin_manage_permissions')) {
  3. error(403);
  4. }
  5. View::show_header('Special Users List');
  6. ?>
  7. <div>
  8. <?php
  9. $DB->query("
  10. SELECT ID
  11. FROM users_main
  12. WHERE CustomPermissions != ''
  13. AND CustomPermissions != 'a:0:{}'");
  14. if ($DB->has_results()) {
  15. ?>
  16. <table width="100%">
  17. <tr class="colhead">
  18. <td>User</td>
  19. <td>Access</td>
  20. </tr>
  21. <?php
  22. while (list($UserID)=$DB->next_record()) {
  23. ?>
  24. <tr>
  25. <td>
  26. <?=Users::format_username($UserID, true, true, true, true)?>
  27. </td>
  28. <td>
  29. <a
  30. href="user.php?action=permissions&amp;userid=<?=$UserID?>">Manage</a>
  31. </td>
  32. </tr>
  33. <?php
  34. } ?>
  35. </table>
  36. <?php
  37. } else { ?>
  38. <h2>There are no special users.</h2>
  39. <?php
  40. } ?>
  41. </div>
  42. <?php
  43. View::show_footer();