BuLi-Tipp hinzugefügt
This commit is contained in:
15
bulitipp/get-users.php
Executable file
15
bulitipp/get-users.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
include("./check.php");
|
||||
|
||||
$data=[];
|
||||
|
||||
foreach(srowforeach("SELECT `id`, `kuerzel`, `username` from `buli-user`;",[]) as $key=>$value){
|
||||
$data[$key]["id"]=$value[0];
|
||||
$data[$key]["kuerzel"]=$value[1];
|
||||
$data[$key]["name"]=$value[2];
|
||||
}
|
||||
|
||||
$result=["reload"=>$reload,"data"=>$data];
|
||||
|
||||
echo json_encode($result, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
|
||||
Reference in New Issue
Block a user