Account and permission manager and security log viewer. https://netsyms.biz/apps/managepanel
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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. require_once __DIR__ . '/../required.php';
  6. redirectifnotloggedin();
  7. ?>
  8. <div class="btn-group mgn-btm-10px">
  9. <a href="app.php?page=addapikey" class="btn btn-primary"><i class="fas fa-plus"></i> <?php $Strings->get("Add Key"); ?></a>
  10. </div>
  11. <table id="apikeytable" class="table table-bordered table-hover table-sm">
  12. <thead>
  13. <tr>
  14. <th data-priority="0"></th>
  15. <th data-priority="1"><?php $Strings->get('actions'); ?></th>
  16. <th data-priority="1"><i class="fas fa-fw fa-key d-none d-md-inline"></i> <?php $Strings->get('Key'); ?></th>
  17. <th data-priority="1"><i class="fas fa-fw fa-list d-none d-md-inline"></i> <?php $Strings->get('Type'); ?></th>
  18. <th data-priority="2"><i class="fas fa-fw fa-sticky-note d-none d-md-inline"></i> <?php $Strings->get('Notes'); ?></th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <?php
  23. $keys = $database->select("apikeys", ["key", "notes", "type"]);
  24. foreach ($keys as $key) {
  25. if ($SETTINGS['hide_api_key_in_use'] && $key['key'] == $SETTINGS['accounthub']['key']) {
  26. continue;
  27. }
  28. ?>
  29. <tr>
  30. <td></td>
  31. <td><form action="action.php" method="POST">
  32. <input type="hidden" name="action" value="revokeapikey" />
  33. <input type="hidden" name="source" value="apikeys" />
  34. <input type="hidden" name="key" value="<?php echo $key['key']; ?>" />
  35. <button type="submit" class="btn btn-danger btn-sm"><i class="fas fa-times"></i> <?php $Strings->get("Revoke"); ?></button>
  36. </form></td>
  37. <td><?php echo $key['key']; ?></td>
  38. <td><?php echo $key['type']; ?></td>
  39. <td><?php echo htmlentities($key['notes']); ?></td>
  40. </tr>
  41. <?php
  42. }
  43. ?>
  44. </tbody>
  45. <tfoot>
  46. <tr>
  47. <th data-priority="0"></th>
  48. <th data-priority="1"><?php $Strings->get('actions'); ?></th>
  49. <th data-priority="1"><i class="fas fa-fw fa-key d-none d-md-inline"></i> <?php $Strings->get('Key'); ?></th>
  50. <th data-priority="1"><i class="fas fa-fw fa-list d-none d-md-inline"></i> <?php $Strings->get('Type'); ?></th>
  51. <th data-priority="2"><i class="fas fa-fw fa-sticky-note d-none d-md-inline"></i> <?php $Strings->get('Notes'); ?></th>
  52. </tfoot>
  53. </table>