From fc7990c62d85fdebef4a438a1fbc9d69a3710d55 Mon Sep 17 00:00:00 2001 From: cassiopc Date: Wed, 22 Aug 2012 16:39:03 +0200 Subject: small bug fixes, inclusion of file size limit configurable --- boca-1.5.0/src/webcast/contest/index.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'boca-1.5.0/src/webcast') 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('', $a['userfullname']); - $teamName = trim($pieces[1]); - $pieces = explode('', $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"; + ?> -- cgit v1.2.3