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/fcontest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boca-1.5.0/src/fcontest.php') diff --git a/boca-1.5.0/src/fcontest.php b/boca-1.5.0/src/fcontest.php index 077b4ec..ea426f3 100644 --- a/boca-1.5.0/src/fcontest.php +++ b/boca-1.5.0/src/fcontest.php @@ -237,10 +237,10 @@ function DBAllSiteTime($contest, $site) { return $a; } -function DBUserInfo($contest, $site, $user) { +function DBUserInfo($contest, $site, $user, $c=null) { $sql = "select * from usertable where usernumber=$user and usersitenumber=$site and " . "contestnumber=$contest"; - $a = DBGetRow ($sql, 0); + $a = DBGetRow ($sql, 0, $c); if ($a == null) { LOGError("Unable to find the user in the database. SQL=(" . $sql . ")"); MSGError("Unable to find the user in the database. Contact an admin now!"); -- cgit v1.2.3