diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-08-22 14:39:03 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-08-22 14:39:03 +0000 |
| commit | fc7990c62d85fdebef4a438a1fbc9d69a3710d55 (patch) | |
| tree | ba6e1a305b0e63fbeb719e1a682c8e5e578b726e /boca-1.5.0/src/webcast | |
| parent | 059e2fdcf0cef7e3594a66e21b3fd682ac736856 (diff) | |
| download | boca-fc7990c62d85fdebef4a438a1fbc9d69a3710d55.tar.gz boca-fc7990c62d85fdebef4a438a1fbc9d69a3710d55.zip | |
small bug fixes, inclusion of file size limit configurable
Diffstat (limited to 'boca-1.5.0/src/webcast')
| -rw-r--r-- | boca-1.5.0/src/webcast/contest/index.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/boca-1.5.0/src/webcast/contest/index.php b/boca-1.5.0/src/webcast/contest/index.php index 8d68f34..3efc719 100644 --- a/boca-1.5.0/src/webcast/contest/index.php +++ b/boca-1.5.0/src/webcast/contest/index.php @@ -40,10 +40,14 @@ echo for ($i = 0; $i < $numTeams; $i++) { $a = DBRow($r, $i); $teamID = $a['username']; - $pieces = explode('</b>', $a['userfullname']); - $teamName = trim($pieces[1]); - $pieces = explode('<b>', $pieces[0]); - $teamUni = trim($pieces[1]); + if(isset($a['usershortname'])) + $teamName = $a['usershortname']; + else + $teamName = $a['userfullname']; + if(isset($a['usershortinstitution'])) + $teamUni = $a['usershortinstitution']; + else + $teamUni = $teamName; echo $teamID . '' . @@ -51,4 +55,7 @@ for ($i = 0; $i < $numTeams; $i++) { $teamName . "\n"; } +echo '1' . '' . '1' . "\n"; +echo $numProblems . '' . 'Y' . "\n"; + ?> |