diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 15:41:43 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 15:41:43 +0000 |
| commit | 1b7b246455f8309e8d605cfd2caec5e00bb4bde4 (patch) | |
| tree | 3facee281c4008677e0b5e53edcb474d96d533fd /src/frun.php | |
| parent | 06834f41b66f6c9fd269754f00509c5f360bd109 (diff) | |
| download | boca-1b7b246455f8309e8d605cfd2caec5e00bb4bde4.tar.gz boca-1b7b246455f8309e8d605cfd2caec5e00bb4bde4.zip | |
small fixes
Diffstat (limited to 'src/frun.php')
| -rw-r--r-- | src/frun.php | 19 |
1 files changed, 11 insertions, 8 deletions
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) { |