From f8c7c32e3ea6417ccf04309ec521b39a0c20414d Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 6 Aug 2012 19:59:23 +0200 Subject: fix some concurrency issues when judging a run; update scripts to look for /etc/boca.conf if it exists --- boca-1.5.0/src/team/run.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'boca-1.5.0/src/team/run.php') diff --git a/boca-1.5.0/src/team/run.php b/boca-1.5.0/src/team/run.php index f00adac..51afc75 100644 --- a/boca-1.5.0/src/team/run.php +++ b/boca-1.5.0/src/team/run.php @@ -82,6 +82,7 @@ if(!isset($_SESSION['forceredo']) || $_SESSION['forceredo']==false) { } } if($redo) { + $_SESSION["popuptime"] = time(); $_SESSION['forceredo']=false; if(($st = DBSiteInfo($_SESSION["usertable"]["contestnumber"],$_SESSION["usertable"]["usersitenumber"])) == null) ForceLoad("../index.php"); @@ -117,11 +118,6 @@ if($redo) { $strtmp .= "\n"; $strtmp .= " \n"; - - if ($run[$i]["anstime"]>$_SESSION["usertable"]["userlastlogin"]-$st["sitestartdate"] && $run[$i]["anstime"] < $st['sitelastmileanswer'] && - $run[$i]["ansfake"]!="t" && !isset($_SESSION["popups"]['run' . $i . '-' . $run[$i]["anstime"]])) { - $_SESSION["popups"]['run' . $i . '-' . $run[$i]["anstime"]] = "Run ".$run[$i]["number"]." result: ".$run[$i]["answer"]. "
"; - } } $strtmp .= ""; if (count($run) == 0) $strtmp .= "
NO RUNS AVAILABLE
"; -- cgit v1.2.3