aboutsummaryrefslogtreecommitdiff
path: root/src/staff
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-04 13:20:51 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-04 13:20:51 +0000
commitaf925fb218e7a333759eb49c667bfb22eb71196d (patch)
tree9aa8254c42a50d2c6bb253074c54609287258053 /src/staff
parent5592a6c28bdf04165d60a9579f70f9c63fc830ca (diff)
downloadboca-af925fb218e7a333759eb49c667bfb22eb71196d.tar.gz
boca-af925fb218e7a333759eb49c667bfb22eb71196d.zip
bug fixes
Diffstat (limited to 'src/staff')
-rw-r--r--src/staff/header.php6
-rw-r--r--src/staff/task.php5
2 files changed, 9 insertions, 2 deletions
diff --git a/src/staff/header.php b/src/staff/header.php
index ca820bc..c841733 100644
--- a/src/staff/header.php
+++ b/src/staff/header.php
@@ -68,6 +68,12 @@ echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\"
echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=score.php>Score</a></td>\n";
echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=run.php>Runs</a></td>\n";
echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=option.php>Options</a></td>\n";
+
+echo " <td align=center width=\"20%\"><a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('report/stat.php', ".
+ "'Problem Statistics','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,".
+ "resizable=yes')\">Statistics</a></td>\n";
+
+//echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=option.php>Options</a></td>\n";
echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=../index.php>Logout</a></td>\n";
echo " </tr>\n";
echo "</table>\n";
diff --git a/src/staff/task.php b/src/staff/task.php
index a447429..52d9665 100644
--- a/src/staff/task.php
+++ b/src/staff/task.php
@@ -65,7 +65,8 @@ if (isset($_GET["done"]) && is_numeric($_GET["done"]) && isset($_GET["site"]) &&
if (($s=DBSiteInfo($_SESSION["usertable"]["contestnumber"],$_SESSION["usertable"]["usersitenumber"])) == null)
ForceLoad("../index.php");
-$task = DBOpenTasksInSites($_SESSION["usertable"]["contestnumber"], $s["sitetasking"]);
+//$task = DBOpenTasksInSites($_SESSION["usertable"]["contestnumber"], $s["sitetasking"]);
+$task = DBAllTasksInSites($_SESSION["usertable"]["contestnumber"], $s["sitetasking"], 'task');
$ds = DIRECTORY_SEPARATOR;
if($ds=="") $ds = "/";
@@ -78,7 +79,7 @@ if(is_readable($_SESSION["locr"] . $ds . 'private' . $ds . 'score.sep')) {
if(isset($lin[1]) && $_SESSION["usertable"]["usertype"]!='admin') {
$arr=explode(' ',trim($lin[1]));
for($arri=0;$arri<count($arr);$arri++)
- if(preg_match($arr[$arri],$_SESSION["usertable"]["username"])) break;
+ if($arr[$arri] != '' && preg_match($arr[$arri],$_SESSION["usertable"]["username"])) break;
if($arri>=count($arr)) continue;
}
$lin = trim($lin[0]);