aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno Ribas <brunoribas@gmail.com>2020-11-05 18:24:16 +0000
committerBruno Ribas <brunoribas@gmail.com>2020-11-05 18:24:16 +0000
commitf2ebd9e0c37b461b608fb62ac5b8d14422f830cc (patch)
tree387e38deff1bdd6b5312376648fafebf7dda2c5c /src
parent0f92e2aad5202223d7117a836312a23f4903a472 (diff)
downloadboca-f2ebd9e0c37b461b608fb62ac5b8d14422f830cc.tar.gz
boca-f2ebd9e0c37b461b608fb62ac5b8d14422f830cc.zip
admin/{claredit,header,run}.php updates from 2018 and 2019
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/admin/claredit.php5
-rw-r--r--src/admin/header.php3
-rw-r--r--src/admin/run.php11
3 files changed, 17 insertions, 2 deletions
diff --git a/src/admin/claredit.php b/src/admin/claredit.php
index cf9785c..6131747 100644
--- a/src/admin/claredit.php
+++ b/src/admin/claredit.php
@@ -125,13 +125,14 @@ if (($a = DBChiefGetClarToAnswer($clarnumber, $clarsitenumber,
<tr>
<td width="20%" align=right><b>Clarification:</b></td>
<td width="80%">
- <textarea name="message" readonly cols="60" rows="8"><?php echo unsanitizeText($a["question"]); ?></textarea>
+ <textarea name="message" readonly cols="60" rows="8"><?php echo unsanitizeText($a["question"]); ?>
+ </textarea>
</td>
</tr>
<tr>
<td width="20%" align=right><b>Answer:</b></td>
<td width="80%">
- <textarea name="answer" cols="60" rows="8"><?php echo unsanitizeText($a["answer"]); ?></textarea>
+ <textarea name="answer" cols="60" rows="8"><?php echo unsanitizeText($a["answer"]); ?></textarea>
</td>
</tr>
<tr>
diff --git a/src/admin/header.php b/src/admin/header.php
index 116f4f6..59a5d31 100644
--- a/src/admin/header.php
+++ b/src/admin/header.php
@@ -89,4 +89,7 @@ if(!isset($_POST['noflush'])) {
echo " </tr>\n";
echo "</table>\n";
}
+
+//if(decryptData(encryptData("aaaaa","senha"),"senha")) MSGError("yay");
+
?>
diff --git a/src/admin/run.php b/src/admin/run.php
index cc0bb46..6de559f 100644
--- a/src/admin/run.php
+++ b/src/admin/run.php
@@ -88,7 +88,16 @@ if(isset($_POST)) {
}
$us = DBAllUserNames($_SESSION["usertable"]["contestnumber"]);
+
+for($judged=0; $judged<2; $judged++) {
for ($i=0; $i<count($run); $i++) {
+ if($run[$i]["status"] == 'gone') continue;
+ if(($run[$i]['status'] != 'judged' && $judged==0) ||
+ ($run[$i]['status'] == 'judged' && $judged==1)) {
+
+
+
+#for ($i=0; $i<count($run); $i++) {
if($run[$i]["answer1"] != 0 && $run[$i]["answer2"] != 0 && ($run[$i]["status"] != "judged" && $run[$i]["status"] != 'deleted')) {
if($runphp == "runchief.php")
echo " <tr bgcolor=\"ff0000\">\n";
@@ -156,6 +165,8 @@ for ($i=0; $i<count($run); $i++) {
}
echo " </tr>\n";
}
+}
+}
echo "</table>";
if (count($run) == 0) echo "<br><center><b><font color=\"#ff0000\">NO RUNS AVAILABLE</font></b></center>";