From be2491b093b1f0ca430bede679ecbb670041e483 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:46:45 +0400 Subject: restructuring of boca's git --- old/webcast/config.php | 25 ++++++++++++++++++ old/webcast/contest/index.php | 61 +++++++++++++++++++++++++++++++++++++++++++ old/webcast/index.php | 1 + old/webcast/runs/index.php | 41 +++++++++++++++++++++++++++++ old/webcast/time/index.php | 12 +++++++++ old/webcast/version/index.php | 10 +++++++ 6 files changed, 150 insertions(+) create mode 100644 old/webcast/config.php create mode 100644 old/webcast/contest/index.php create mode 120000 old/webcast/index.php create mode 100644 old/webcast/runs/index.php create mode 100644 old/webcast/time/index.php create mode 100644 old/webcast/version/index.php (limited to 'old/webcast') diff --git a/old/webcast/config.php b/old/webcast/config.php new file mode 100644 index 0000000..b16deb6 --- /dev/null +++ b/old/webcast/config.php @@ -0,0 +1,25 @@ + 0) + $freezeTime = $ct['siteduration']; +else + $freezeTime = $ct['sitelastmilescore']; + +?> diff --git a/old/webcast/contest/index.php b/old/webcast/contest/index.php new file mode 100644 index 0000000..3efc719 --- /dev/null +++ b/old/webcast/contest/index.php @@ -0,0 +1,61 @@ + 0'); + +$numProblems = DBnlines($r); + +$r = DBExec($c, + 'SELECT username, userfullname FROM usertable' . + ' WHERE contestnumber = ' . $contest . + ' AND userenabled = \'t\' AND usersitenumber = ' . $site . + ' AND usertype = \'team\''); + +$numTeams = DBnlines($r); + +echo + $numTeams . '' . + $numProblems . "\n"; + +for ($i = 0; $i < $numTeams; $i++) { + $a = DBRow($r, $i); + $teamID = $a['username']; + if(isset($a['usershortname'])) + $teamName = $a['usershortname']; + else + $teamName = $a['userfullname']; + if(isset($a['usershortinstitution'])) + $teamUni = $a['usershortinstitution']; + else + $teamUni = $teamName; + + echo + $teamID . '' . + $teamUni . '' . + $teamName . "\n"; +} + +echo '1' . '' . '1' . "\n"; +echo $numProblems . '' . 'Y' . "\n"; + +?> diff --git a/old/webcast/index.php b/old/webcast/index.php new file mode 120000 index 0000000..4e9b47a --- /dev/null +++ b/old/webcast/index.php @@ -0,0 +1 @@ +config.php \ No newline at end of file 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 @@ + $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"; + }; +} + +?> diff --git a/old/webcast/time/index.php b/old/webcast/time/index.php new file mode 100644 index 0000000..061c81f --- /dev/null +++ b/old/webcast/time/index.php @@ -0,0 +1,12 @@ + diff --git a/old/webcast/version/index.php b/old/webcast/version/index.php new file mode 100644 index 0000000..4d474a2 --- /dev/null +++ b/old/webcast/version/index.php @@ -0,0 +1,10 @@ + -- cgit v1.2.3