aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.2/old/webcast/contest
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2013-07-02 05:44:46 +0000
committercassio <cassiopc@gmail.com>2013-07-02 05:44:46 +0000
commita9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /boca-1.5.2/old/webcast/contest
parent94caebadeb66ad7b453d4258a796979cafb758b0 (diff)
downloadboca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.tar.gz
boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.zip
restructuring of boca's git
Diffstat (limited to 'boca-1.5.2/old/webcast/contest')
-rw-r--r--boca-1.5.2/old/webcast/contest/index.php61
1 files changed, 0 insertions, 61 deletions
diff --git a/boca-1.5.2/old/webcast/contest/index.php b/boca-1.5.2/old/webcast/contest/index.php
deleted file mode 100644
index 3efc719..0000000
--- a/boca-1.5.2/old/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";
-
-?>