From 861ca8a5878d70549dae12b1ea84c5433e2372a6 Mon Sep 17 00:00:00 2001 From: cassiopc Date: Wed, 7 Nov 2012 16:25:18 +0100 Subject: inclusion of webcast file download option at admin/report --- boca-1.5.2/old/webcast/config.php | 25 +++++++++++++ boca-1.5.2/old/webcast/contest/index.php | 61 +++++++++++++++++++++++++++++++ boca-1.5.2/old/webcast/index.php | 1 + boca-1.5.2/old/webcast/runs/index.php | 41 +++++++++++++++++++++ boca-1.5.2/old/webcast/time/index.php | 12 ++++++ boca-1.5.2/old/webcast/version/index.php | 10 +++++ boca-1.5.2/src/admin/report.php | 6 ++- boca-1.5.2/src/scoretable.php | 5 ++- boca-1.5.2/src/webcast/config.php | 25 ------------- boca-1.5.2/src/webcast/contest/index.php | 61 ------------------------------- boca-1.5.2/src/webcast/runs/index.php | 41 --------------------- boca-1.5.2/src/webcast/time/index.php | 12 ------ boca-1.5.2/src/webcast/version/index.php | 10 ----- boca-1.5.2/tools/icpc.etc.tgz | Bin 9525 -> 9525 bytes 14 files changed, 159 insertions(+), 151 deletions(-) create mode 100644 boca-1.5.2/old/webcast/config.php create mode 100644 boca-1.5.2/old/webcast/contest/index.php create mode 120000 boca-1.5.2/old/webcast/index.php create mode 100644 boca-1.5.2/old/webcast/runs/index.php create mode 100644 boca-1.5.2/old/webcast/time/index.php create mode 100644 boca-1.5.2/old/webcast/version/index.php delete mode 100644 boca-1.5.2/src/webcast/config.php delete mode 100644 boca-1.5.2/src/webcast/contest/index.php delete mode 100644 boca-1.5.2/src/webcast/runs/index.php delete mode 100644 boca-1.5.2/src/webcast/time/index.php delete mode 100644 boca-1.5.2/src/webcast/version/index.php diff --git a/boca-1.5.2/old/webcast/config.php b/boca-1.5.2/old/webcast/config.php new file mode 100644 index 0000000..b16deb6 --- /dev/null +++ b/boca-1.5.2/old/webcast/config.php @@ -0,0 +1,25 @@ + 0) + $freezeTime = $ct['siteduration']; +else + $freezeTime = $ct['sitelastmilescore']; + +?> diff --git a/boca-1.5.2/old/webcast/contest/index.php b/boca-1.5.2/old/webcast/contest/index.php new file mode 100644 index 0000000..3efc719 --- /dev/null +++ b/boca-1.5.2/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/boca-1.5.2/old/webcast/index.php b/boca-1.5.2/old/webcast/index.php new file mode 120000 index 0000000..4e9b47a --- /dev/null +++ b/boca-1.5.2/old/webcast/index.php @@ -0,0 +1 @@ +config.php \ No newline at end of file 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 @@ + $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/boca-1.5.2/old/webcast/time/index.php b/boca-1.5.2/old/webcast/time/index.php new file mode 100644 index 0000000..061c81f --- /dev/null +++ b/boca-1.5.2/old/webcast/time/index.php @@ -0,0 +1,12 @@ + diff --git a/boca-1.5.2/old/webcast/version/index.php b/boca-1.5.2/old/webcast/version/index.php new file mode 100644 index 0000000..4d474a2 --- /dev/null +++ b/boca-1.5.2/old/webcast/version/index.php @@ -0,0 +1,10 @@ + diff --git a/boca-1.5.2/src/admin/report.php b/boca-1.5.2/src/admin/report.php index bb1fc34..fe4b88d 100644 --- a/boca-1.5.2/src/admin/report.php +++ b/boca-1.5.2/src/admin/report.php @@ -15,7 +15,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . //////////////////////////////////////////////////////////////////////////////// -// Last modified 05/aug/2012 by cassio@ime.usp.br +// Last modified 07/nov/2012 by cassio@ime.usp.br require 'header.php'; @@ -54,6 +54,10 @@ if (isset($_GET)) { "'ICPC File','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,". "resizable=yes')\">ICPC File
\n"; + echo " Webcast File
\n"; + echo " Statistics
\n"; diff --git a/boca-1.5.2/src/scoretable.php b/boca-1.5.2/src/scoretable.php index bc6cf47..ef11ee6 100644 --- a/boca-1.5.2/src/scoretable.php +++ b/boca-1.5.2/src/scoretable.php @@ -18,7 +18,10 @@ //Last updated 02/nov/2012 by cassio@ime.usp.br require_once("db.php"); -$locr=$_SESSION["locr"]; +if(isset($_SESSION["locr"])) + $locr=$_SESSION["locr"]; +else + $locr='.'; if(isset($_GET["clock"]) && $_GET["clock"]==1) { ob_start(); diff --git a/boca-1.5.2/src/webcast/config.php b/boca-1.5.2/src/webcast/config.php deleted file mode 100644 index 2a4ba7e..0000000 --- a/boca-1.5.2/src/webcast/config.php +++ /dev/null @@ -1,25 +0,0 @@ - 0 && $_SESSION["usertable"]["usertype"] == "admin") - $freezeTime = $ct['siteduration']; -else - $freezeTime = $ct['sitelastmilescore']; - -?> diff --git a/boca-1.5.2/src/webcast/contest/index.php b/boca-1.5.2/src/webcast/contest/index.php deleted file mode 100644 index 3efc719..0000000 --- a/boca-1.5.2/src/webcast/contest/index.php +++ /dev/null @@ -1,61 +0,0 @@ - 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/boca-1.5.2/src/webcast/runs/index.php b/boca-1.5.2/src/webcast/runs/index.php deleted file mode 100644 index e28567e..0000000 --- a/boca-1.5.2/src/webcast/runs/index.php +++ /dev/null @@ -1,41 +0,0 @@ - $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/boca-1.5.2/src/webcast/time/index.php b/boca-1.5.2/src/webcast/time/index.php deleted file mode 100644 index 061c81f..0000000 --- a/boca-1.5.2/src/webcast/time/index.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/boca-1.5.2/src/webcast/version/index.php b/boca-1.5.2/src/webcast/version/index.php deleted file mode 100644 index 4d474a2..0000000 --- a/boca-1.5.2/src/webcast/version/index.php +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/boca-1.5.2/tools/icpc.etc.tgz b/boca-1.5.2/tools/icpc.etc.tgz index 600a81d..12d92b2 100644 Binary files a/boca-1.5.2/tools/icpc.etc.tgz and b/boca-1.5.2/tools/icpc.etc.tgz differ -- cgit v1.2.3