aboutsummaryrefslogtreecommitdiff
path: root/old/webcast/runs/index.php
blob: e28567ee615a17ab08661e77ff0d2bb86b6f23a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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";
	};
}

?>