diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-08-06 17:59:23 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-08-06 17:59:23 +0000 |
| commit | f8c7c32e3ea6417ccf04309ec521b39a0c20414d (patch) | |
| tree | 86befe96e554f00d25e1f3717d456ef6da470405 /boca-1.5.0/src/fcontest.php | |
| parent | d75956684f9599b8daf705b11d67c75186ea7e3f (diff) | |
| download | boca-f8c7c32e3ea6417ccf04309ec521b39a0c20414d.tar.gz boca-f8c7c32e3ea6417ccf04309ec521b39a0c20414d.zip | |
fix some concurrency issues when judging a run; update scripts to look for /etc/boca.conf if it exists
Diffstat (limited to 'boca-1.5.0/src/fcontest.php')
| -rw-r--r-- | boca-1.5.0/src/fcontest.php | 4 |
1 files changed, 2 insertions, 2 deletions
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!"); |