diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-10 10:35:53 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-10 10:35:53 +0000 |
| commit | 02b4aacc81613792b0fa618692145dc1e2989e42 (patch) | |
| tree | da7e9da7a587e8ffa9032ebf02a1022a315e9305 /old/webcast/contest | |
| parent | e1b61094597488dcb3ef166013186b07bf379d76 (diff) | |
| download | boca-02b4aacc81613792b0fa618692145dc1e2989e42.tar.gz boca-02b4aacc81613792b0fa618692145dc1e2989e42.zip | |
removal of old files, preparation for https
Diffstat (limited to 'old/webcast/contest')
| -rw-r--r-- | old/webcast/contest/index.php | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/old/webcast/contest/index.php b/old/webcast/contest/index.php deleted file mode 100644 index 3efc719..0000000 --- a/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"; - -?> |