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 833B

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