From e31c912af90ba0163791093ffc45c6bd0ae9767b Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 9 Mar 2025 19:33:38 +0100 Subject: [PATCH] q --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 947c7eb..284fb42 100644 --- a/index.php +++ b/index.php @@ -167,6 +167,7 @@ if (isset($_GET["admin"])) { die("WARNING ! sub event not started"); } $player_id = $_POST["player_id"]; + $start_time = $sub_event_datas["start_time"]; $timelength = strtotime($_POST["score_time"])-$start_time; $score_time = $timelength; if($score_time<$sub_event_datas["start_time"]){ @@ -177,7 +178,6 @@ if (isset($_GET["admin"])) { if($is_speedrun){ //TODO: check this if code block when implementing "http request speedrun" (for dev speedrun or other things that can be complete with a special http request) // SPEEDRUN SCORE CALCULATION - $start_time = $sub_event_datas["start_time"]; $get_position_in_classment = mysqli_query($con, "SELECT score_time FROM `scores` WHERE event_code='$event_code' AND sub_event_code='$sub_event_code' AND score_time<$score_time ORDER BY score_time ASC"); $position_in_classment = mysqli_num_rows($get_position_in_classment)+1; $bestscore=$timelength;