aswi2021mr-proper-gitlab/application/controller/UsersListController.php @ 082263b5
1 |
<?php
|
---|---|
2 |
require "../model/DB.php"; |
3 |
|
4 |
if ($_SESSION['role'] == "ADMIN") { |
5 |
$DB = new DB(); |
6 |
|
7 |
$results = $DB->select("SELECT id, username, role from USERS", array()); |
8 |
|
9 |
echo json_encode(count($results) == 0 ? null : $results); |
10 |
}
|
- « Předchozí
- 1
- …
- 6
- 7
- 8
- Další »