bug fix and documentation
This commit is contained in:
committed by
giandonato.inverso@edempg.it
parent
6682a207b2
commit
57930cf9db
@@ -6,16 +6,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$db = getDbInstance();
|
||||
$json = json_decode(file_get_contents('php://input'), true);
|
||||
|
||||
if (isset($json['action'])) {
|
||||
$action = filter_var($json['action'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
||||
} else {
|
||||
echo json_encode([
|
||||
'data' => 'Missing action field in the request.',
|
||||
'status' => 400
|
||||
]);
|
||||
exit();
|
||||
}
|
||||
|
||||
$params = $json['params'];
|
||||
$files = [];
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
if(isset($dynamic_qrcode['id_owner'])) {
|
||||
$owner = $users_instance->getUser($dynamic_qrcode['id_owner']);
|
||||
echo "<option selected value=\"" . $owner["id"] . "\">" . $owner["username"] . "</option>";
|
||||
echo "<option value=\"\">All</option>";
|
||||
}
|
||||
|
||||
$users = $users_instance->getAllUsers();
|
||||
|
||||
Reference in New Issue
Block a user