deadline hinzugefügt

This commit is contained in:
R40fendt
2025-08-19 12:58:42 +02:00
parent fec81def0e
commit 72ec423120
3 changed files with 31 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ use Firebase\JWT\Key;
include("jwtsecret.php");
include("../../mysqlverbinden.php");
include("../rowforeach.php");
include("inc.php");
$headers = getallheaders();
if(isset($headers['Authorization'])) {
@@ -40,6 +42,10 @@ $spieltag = $_GET["spieltag"];
if(!isset($_GET["tipps"])) die("GET tipps fehlt");
$tipps = json_decode($_GET["tipps"],true);
if(deadline($spieltag)){
die("deadline überschritten");
}
$tippids=[];
foreach($tipps as $tipp){
$paarungsid = $tipp['paarung']["id"];