aboutsummaryrefslogtreecommitdiff
path: root/src/admin
diff options
context:
space:
mode:
Diffstat (limited to 'src/admin')
-rw-r--r--src/admin/header.php2
-rw-r--r--src/admin/problem.php3
-rw-r--r--src/admin/report/webcast.php2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/admin/header.php b/src/admin/header.php
index 59a5d31..b4fc812 100644
--- a/src/admin/header.php
+++ b/src/admin/header.php
@@ -62,7 +62,7 @@ if(!isset($_POST['noflush'])) {
echo "<img src=\"../images/smallballoontransp.png\" alt=\"\">";
echo "<font color=\"#000000\">BOCA</font>";
echo "</td><td bgcolor=\"#eeee00\" width=\"99%\">\n";
- echo "Username: " . $_SESSION["usertable"]["userfullname"] . " (site=".$_SESSION["usertable"]["usersitenumber"].")<br>\n";
+ echo "Username: " . $_SESSION["usertable"]["username"] . " (site=".$_SESSION["usertable"]["usersitenumber"].")<br>\n";
list($clockstr,$clocktype)=siteclock();
echo "</td><td bgcolor=\"#eeee00\" align=center nowrap>&nbsp;".$clockstr."&nbsp;</td></tr>\n";
echo "</table>\n";
diff --git a/src/admin/problem.php b/src/admin/problem.php
index 9024544..957c9da 100644
--- a/src/admin/problem.php
+++ b/src/admin/problem.php
@@ -231,6 +231,9 @@ for ($i=0; $i<count($prob); $i++) {
$param['fake'] = 'f';
$param['colorname'] = trim($_POST["colorname" . $prob[$i]['number']]);
$param['color'] = trim($_POST["color" . $prob[$i]['number']]);
+ if (isset ($prob[$i]['autojudge'])) {
+ $param['autojudge'] = ((integer) $prob[$i]['autojudge']);
+ }
DBNewProblem ($_SESSION["usertable"]["contestnumber"], $param);
}
ForceLoad("problem.php");
diff --git a/src/admin/report/webcast.php b/src/admin/report/webcast.php
index 75030be..6f6cf7c 100644
--- a/src/admin/report/webcast.php
+++ b/src/admin/report/webcast.php
@@ -267,7 +267,7 @@ for ($i = 0; $i < $numRuns; $i++) {
} else if ($run[$i]['answer'] == 'Not answered yet') {
$runfile .= '?' . "\n";
}
- else if($run[$i]['answer'] == 'NO - Compilation error' || $run[$i]['answer'] == 'NO - Contact staff'){
+ else if($run[$i]['answer'] == 'NO - Compilation error' || $run[$i]['answer'] == 'NO - Contact staff' || $run[$i]['answer'] == 'NO - Name mismatch'){
$runfile .= 'X' . "\n";
}
else {