From 1b7b246455f8309e8d605cfd2caec5e00bb4bde4 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Fri, 4 Aug 2017 16:41:43 +0100 Subject: small fixes --- src/frun.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/frun.php') diff --git a/src/frun.php b/src/frun.php index 34bfd83..5576bcd 100644 --- a/src/frun.php +++ b/src/frun.php @@ -753,14 +753,17 @@ function DBNewRun($param,$c=null) { return 0; } } else { - $b = DBSiteInfo($contest, $site, $c); - $dif = $rundatediff; - if ($dif >= $b['siteduration']) { - DBExec($c, "rollback work", "DBNewRun(rollback-over)"); - LOGError("Tried to submit a run but the contest is over. SQL=(" . $sql . ")"); - MSGError("The contest is over!"); - return 0; - } + //cassiopc: so we let the run enter the system if it comes with a defined timestamp, but it is to decide later if it will be counted... + //$b = DBSiteInfo($contest, $site, $c); + $dif = $rundatediff; + /* + if ($dif >= $b['siteduration']) { + DBExec($c, "rollback work", "DBNewRun(rollback-over)"); + LOGError("Tried to submit a run but the contest is over. SQL=(" . $sql . ")"); + MSGError("The contest is over!"); + return 0; + } + */ } if($updatetime > $t || $insert) { -- cgit v1.2.3