BuLi-Tipp hinzugefügt

This commit is contained in:
R40fendt
2025-05-06 10:30:33 +02:00
parent 976f617c32
commit 899d7c4fc6
8 changed files with 266 additions and 0 deletions

18
bulitipp/ts.php Executable file
View 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);