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