<?php
require "../model/DB.php";
if ($_SESSION['role'] == "ADMIN") {
$DB = new DB();
$results = $DB->select("SELECT id, username, role from USERS", array());
echo json_encode(count($results) == 0 ? null : $results);
}