aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-10-30 18:38:15 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-10-30 18:38:15 +0000
commitae3e5cb4c72c4461a702ac2096df7946f3660ca3 (patch)
tree57c53a0b4ee1bbdeaa471838623743711f0c1966 /src
parent96b6addadf6401a70365ca09fc2373dae1e03e0d (diff)
downloadboca-ae3e5cb4c72c4461a702ac2096df7946f3660ca3.tar.gz
boca-ae3e5cb4c72c4461a702ac2096df7946f3660ca3.zip
make items appear
Diffstat (limited to 'src')
-rw-r--r--src/admin/task.php3
-rw-r--r--src/fclar.php2
-rw-r--r--src/frun.php2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/admin/task.php b/src/admin/task.php
index a1446ce..cf707bc 100644
--- a/src/admin/task.php
+++ b/src/admin/task.php
@@ -81,6 +81,9 @@ if (isset($_GET["done"]) && is_numeric($_GET["done"]) && isset($_GET["site"]) &&
if (($s=DBSiteInfo($_SESSION["usertable"]["contestnumber"],$_SESSION["usertable"]["usersitenumber"])) == null)
ForceLoad("../index.php");
+if (trim($s["sitetasking"])!="") $s["sitetasking"].=",".$_SESSION["usertable"]["usersitenumber"];
+else $s["sitetasking"]=$_SESSION["usertable"]["usersitenumber"];
+
$task = DBAllTasksInSites($_SESSION["usertable"]["contestnumber"], $s["sitetasking"], $order, true);
for ($i=0; $i<count($task); $i++) {
$st = $task[$i]["status"];
diff --git a/src/fclar.php b/src/fclar.php
index 72364e8..4555e07 100644
--- a/src/fclar.php
+++ b/src/fclar.php
@@ -478,7 +478,7 @@ function DBOpenClarsSNS($contest,$site,$st,$order='clar') {
"from clartable as c, problemtable as p " .
"where c.contestnumber=$contest and p.contestnumber=c.contestnumber and " .
"c.clarproblem=p.problemnumber";
- if ($site != "x") {
+ if (strpos($site,"x")===false) {
$str = explode(",", $site);
$sql .= " and (c.clarstatus='answeredall'";
for ($i=0;$i<count($str);$i++) {
diff --git a/src/frun.php b/src/frun.php
index 20fb616..5977fdf 100644
--- a/src/frun.php
+++ b/src/frun.php
@@ -585,7 +585,7 @@ function DBOpenRunsSNS($contest,$site,$st,$order='run') {
"r.runproblem=p.problemnumber and l.contestnumber=r.contestnumber and r.usernumber=u.usernumber and r.runsitenumber=u.usersitenumber and " .
"l.langnumber=r.runlangnumber and a.answernumber=r.runanswer and " .
"a.contestnumber=r.contestnumber";
- if ($site != "x") {
+ if (strpos($site,"x")===false) {
$str = explode(",", $site);
$sql .= " and (r.runsitenumber=-1";
for ($i=0;$i<count($str);$i++) {