diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-08-31 09:02:27 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-08-31 09:02:27 +0000 |
| commit | 2948fe8d6055f6dfe6289e64bce426b5e0bb552f (patch) | |
| tree | 2cff8a28f2bcf1f21116b952738b5e683e11c193 /boca-1.5.1/src/webcast/runs | |
| parent | 37d5a8f2b6ecf585f91c2f7c804145853f0ca1e9 (diff) | |
| download | boca-2948fe8d6055f6dfe6289e64bce426b5e0bb552f.tar.gz boca-2948fe8d6055f6dfe6289e64bce426b5e0bb552f.zip | |
inclusion of dir 1.5.1 for boca
Diffstat (limited to 'boca-1.5.1/src/webcast/runs')
| -rw-r--r-- | boca-1.5.1/src/webcast/runs/index.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/boca-1.5.1/src/webcast/runs/index.php b/boca-1.5.1/src/webcast/runs/index.php new file mode 100644 index 0000000..e28567e --- /dev/null +++ b/boca-1.5.1/src/webcast/runs/index.php @@ -0,0 +1,41 @@ +<?php + +require '../../db.php'; +require '../config.php'; + +header('Content-type: text/plain; encoding=utf-8'); + +$s = DBSiteInfo($contest, $site); + +$run = DBAllRunsInSites($contest, $site, 'run'); + +$numRuns = count($run); + +for ($i = 0; $i < $numRuns; $i++) { + $u = DBUserInfo($contest, $site, $run[$i]['user']); + + $runID = $run[$i]['number']; + $runTime = dateconvminutes($run[$i]['timestamp']); + $runTeam = $u['username']; + $runProblem = $run[$i]['problem']; + + if ($runTime > $freezeTime) { + continue; + } + + echo + $runID . '' . + $runTime . '' . + $runTeam . '' . + $runProblem . ''; + + if ($run[$i]['yes']=='t') { + echo 'Y' . "\n"; + } else if ($run[$i]['answer'] == 'Not answered yet') { + echo '?' . "\n"; + } else { + echo 'N' . "\n"; + }; +} + +?> |