aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.2/old/webcast/runs/index.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2012-11-07 15:25:18 +0000
committercassiopc <cassiopc@gmail.com>2012-11-07 15:25:18 +0000
commit861ca8a5878d70549dae12b1ea84c5433e2372a6 (patch)
tree235e96e953d2b4b1ba0823a0c95af7050896c6d5 /boca-1.5.2/old/webcast/runs/index.php
parentf099cf6214a24104e4b3d66bbda110cdb1703ac2 (diff)
downloadboca-861ca8a5878d70549dae12b1ea84c5433e2372a6.tar.gz
boca-861ca8a5878d70549dae12b1ea84c5433e2372a6.zip
inclusion of webcast file download option at admin/report
Diffstat (limited to 'boca-1.5.2/old/webcast/runs/index.php')
-rw-r--r--boca-1.5.2/old/webcast/runs/index.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/boca-1.5.2/old/webcast/runs/index.php b/boca-1.5.2/old/webcast/runs/index.php
new file mode 100644
index 0000000..e28567e
--- /dev/null
+++ b/boca-1.5.2/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";
+ };
+}
+
+?>