12345678910111213 |
- <?php
- class AccountsAdminDashboard {
- public function display() {
- $database = SqliteDatabase::getSingleton();
- $accounts = $database->queryArray("SELECT rowid AS client_id, * FROM accounts;");
- $data = array();
- $data['sectionName'] = "Accounts";
- $data['displayName'] = $_SESSION['display_name'];
- $data['accounts'] = $accounts;
- $data['superadmin'] = $_SESSION['superadmin'] ?? false;
- return (new View())->render("admin/accounts.php", $data);
- }
- }
|