AccountsAdminDashboard.class.php 459 B

12345678910111213
  1. <?php
  2. class AccountsAdminDashboard {
  3. public function display() {
  4. $database = SqliteDatabase::getSingleton();
  5. $accounts = $database->queryArray("SELECT rowid AS client_id, * FROM accounts;");
  6. $data = array();
  7. $data['sectionName'] = "Accounts";
  8. $data['displayName'] = $_SESSION['display_name'];
  9. $data['accounts'] = $accounts;
  10. $data['superadmin'] = $_SESSION['superadmin'] ?? false;
  11. return (new View())->render("admin/accounts.php", $data);
  12. }
  13. }