aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.2/src/webcast
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/src/webcast
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/src/webcast')
-rw-r--r--boca-1.5.2/src/webcast/config.php25
-rw-r--r--boca-1.5.2/src/webcast/contest/index.php61
-rw-r--r--boca-1.5.2/src/webcast/runs/index.php41
-rw-r--r--boca-1.5.2/src/webcast/time/index.php12
-rw-r--r--boca-1.5.2/src/webcast/version/index.php10
5 files changed, 0 insertions, 149 deletions
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 @@
-<?php
-$loc = $locr = "..";
-require_once("$locr/globals.php");
-require_once("$locr/db.php");
-if(!ValidSession()) {
- InvalidSession("webcast/index.php");
- ForceLoad("$loc/index.php");
-}
-if($_SESSION["usertable"]["usertype"] != "admin" && $_SESSION["usertable"]["usertype"] != "score") {
- IntrusionNotify("webcast/index.php");
- ForceLoad("$loc/index.php");
-}
-
-$contest = $_SESSION["usertable"]["contestnumber"];
-$site = $_SESSION["usertable"]["usersitenumber"];
-
-if(($ct = DBSiteInfo($contest, $site)) == null)
- ForceLoad("../index.php");
-
-if(isset($_GET['full']) && $_GET['full'] > 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 @@
-<?php
-
-require '../../db.php';
-require '../config.php';
-
-header('Content-type: text/plain; encoding=utf-8');
-
-$ct = DBContestInfo($contest);
-
-echo
- $ct['contestname'] . "\n";
-
-echo
- $ct['contestduration']/60 . '' .
- $ct['contestlastmileanswer']/60 . '' .
- $ct['contestlastmilescore']/60 . '' .
- $ct['contestpenalty']/60 . "\n";
-
-$c = DBConnect();
-
-$r = DBExec($c,
- 'SELECT problemnumber FROM problemtable' .
- ' WHERE contestnumber = ' . $contest .
- ' AND problemnumber > 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 @@
-<?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";
- };
-}
-
-?>
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 @@
-<?php
-
-require '../../db.php';
-require '../config.php';
-
-header('Content-type: text/plain; encoding=utf-8');
-
-$s = DBSiteInfo($contest, $site);
-
-echo $s['currenttime'];
-
-?>
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 @@
-<?php
-
-require '../../db.php';
-require '../config.php';
-
-header('Content-type: text/plain; encoding=utf-8');
-
-echo '1.0' . "\n";
-
-?>