q
This commit is contained in:
parent
81c6edc8be
commit
e31c912af9
1 changed files with 1 additions and 1 deletions
|
@ -167,6 +167,7 @@ if (isset($_GET["admin"])) {
|
||||||
die("WARNING ! sub event not started");
|
die("WARNING ! sub event not started");
|
||||||
}
|
}
|
||||||
$player_id = $_POST["player_id"];
|
$player_id = $_POST["player_id"];
|
||||||
|
$start_time = $sub_event_datas["start_time"];
|
||||||
$timelength = strtotime($_POST["score_time"])-$start_time;
|
$timelength = strtotime($_POST["score_time"])-$start_time;
|
||||||
$score_time = $timelength;
|
$score_time = $timelength;
|
||||||
if($score_time<$sub_event_datas["start_time"]){
|
if($score_time<$sub_event_datas["start_time"]){
|
||||||
|
@ -177,7 +178,6 @@ if (isset($_GET["admin"])) {
|
||||||
if($is_speedrun){
|
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)
|
//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
|
// 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");
|
$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;
|
$position_in_classment = mysqli_num_rows($get_position_in_classment)+1;
|
||||||
$bestscore=$timelength;
|
$bestscore=$timelength;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue