diff options
| author | cassio <cassiopc@gmail.com> | 2013-07-02 05:46:45 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2013-07-02 05:46:45 +0000 |
| commit | be2491b093b1f0ca430bede679ecbb670041e483 (patch) | |
| tree | fe2da63d1811cb93e4352a43a113ace37b9f6017 /old/webcast/runs/index.php | |
| parent | a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (diff) | |
| download | boca-be2491b093b1f0ca430bede679ecbb670041e483.tar.gz boca-be2491b093b1f0ca430bede679ecbb670041e483.zip | |
restructuring of boca's git
Diffstat (limited to 'old/webcast/runs/index.php')
| -rw-r--r-- | old/webcast/runs/index.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/old/webcast/runs/index.php b/old/webcast/runs/index.php new file mode 100644 index 0000000..e28567e --- /dev/null +++ b/old/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"; + }; +} + +?> |