aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2012-11-07 15:25:18 +0000
committercassiopc <cassiopc@gmail.com>2012-11-07 15:25:18 +0000
commit861ca8a5878d70549dae12b1ea84c5433e2372a6 (patch)
tree235e96e953d2b4b1ba0823a0c95af7050896c6d5
parentf099cf6214a24104e4b3d66bbda110cdb1703ac2 (diff)
downloadboca-861ca8a5878d70549dae12b1ea84c5433e2372a6.tar.gz
boca-861ca8a5878d70549dae12b1ea84c5433e2372a6.zip
inclusion of webcast file download option at admin/report
-rw-r--r--boca-1.5.2/old/webcast/config.php (renamed from boca-1.5.2/src/webcast/config.php)4
-rw-r--r--boca-1.5.2/old/webcast/contest/index.php (renamed from boca-1.5.2/src/webcast/contest/index.php)0
l---------boca-1.5.2/old/webcast/index.php1
-rw-r--r--boca-1.5.2/old/webcast/runs/index.php (renamed from boca-1.5.2/src/webcast/runs/index.php)0
-rw-r--r--boca-1.5.2/old/webcast/time/index.php (renamed from boca-1.5.2/src/webcast/time/index.php)0
-rw-r--r--boca-1.5.2/old/webcast/version/index.php (renamed from boca-1.5.2/src/webcast/version/index.php)0
-rw-r--r--boca-1.5.2/src/admin/report.php6
-rw-r--r--boca-1.5.2/src/scoretable.php5
-rw-r--r--boca-1.5.2/tools/icpc.etc.tgzbin9525 -> 9525 bytes
9 files changed, 12 insertions, 4 deletions
diff --git a/boca-1.5.2/src/webcast/config.php b/boca-1.5.2/old/webcast/config.php
index 2a4ba7e..b16deb6 100644
--- a/boca-1.5.2/src/webcast/config.php
+++ b/boca-1.5.2/old/webcast/config.php
@@ -6,7 +6,7 @@ if(!ValidSession()) {
InvalidSession("webcast/index.php");
ForceLoad("$loc/index.php");
}
-if($_SESSION["usertable"]["usertype"] != "admin" && $_SESSION["usertable"]["usertype"] != "score") {
+if($_SESSION["usertable"]["usertype"] != "admin") {
IntrusionNotify("webcast/index.php");
ForceLoad("$loc/index.php");
}
@@ -17,7 +17,7 @@ $site = $_SESSION["usertable"]["usersitenumber"];
if(($ct = DBSiteInfo($contest, $site)) == null)
ForceLoad("../index.php");
-if(isset($_GET['full']) && $_GET['full'] > 0 && $_SESSION["usertable"]["usertype"] == "admin")
+if(isset($_GET['full']) && $_GET['full'] > 0)
$freezeTime = $ct['siteduration'];
else
$freezeTime = $ct['sitelastmilescore'];
diff --git a/boca-1.5.2/src/webcast/contest/index.php b/boca-1.5.2/old/webcast/contest/index.php
index 3efc719..3efc719 100644
--- a/boca-1.5.2/src/webcast/contest/index.php
+++ b/boca-1.5.2/old/webcast/contest/index.php
diff --git a/boca-1.5.2/old/webcast/index.php b/boca-1.5.2/old/webcast/index.php
new file mode 120000
index 0000000..4e9b47a
--- /dev/null
+++ b/boca-1.5.2/old/webcast/index.php
@@ -0,0 +1 @@
+config.php \ No newline at end of file
diff --git a/boca-1.5.2/src/webcast/runs/index.php b/boca-1.5.2/old/webcast/runs/index.php
index e28567e..e28567e 100644
--- a/boca-1.5.2/src/webcast/runs/index.php
+++ b/boca-1.5.2/old/webcast/runs/index.php
diff --git a/boca-1.5.2/src/webcast/time/index.php b/boca-1.5.2/old/webcast/time/index.php
index 061c81f..061c81f 100644
--- a/boca-1.5.2/src/webcast/time/index.php
+++ b/boca-1.5.2/old/webcast/time/index.php
diff --git a/boca-1.5.2/src/webcast/version/index.php b/boca-1.5.2/old/webcast/version/index.php
index 4d474a2..4d474a2 100644
--- a/boca-1.5.2/src/webcast/version/index.php
+++ b/boca-1.5.2/old/webcast/version/index.php
diff --git a/boca-1.5.2/src/admin/report.php b/boca-1.5.2/src/admin/report.php
index bb1fc34..fe4b88d 100644
--- a/boca-1.5.2/src/admin/report.php
+++ b/boca-1.5.2/src/admin/report.php
@@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
-// Last modified 05/aug/2012 by cassio@ime.usp.br
+// Last modified 07/nov/2012 by cassio@ime.usp.br
require 'header.php';
@@ -54,6 +54,10 @@ if (isset($_GET)) {
"'ICPC File','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,".
"resizable=yes')\">ICPC File</a><br />\n";
+ echo " <a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('report/webcast.php', ".
+ "'Webcast File','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,".
+ "resizable=yes')\">Webcast File</a><br />\n";
+
echo " <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><br />\n";
diff --git a/boca-1.5.2/src/scoretable.php b/boca-1.5.2/src/scoretable.php
index bc6cf47..ef11ee6 100644
--- a/boca-1.5.2/src/scoretable.php
+++ b/boca-1.5.2/src/scoretable.php
@@ -18,7 +18,10 @@
//Last updated 02/nov/2012 by cassio@ime.usp.br
require_once("db.php");
-$locr=$_SESSION["locr"];
+if(isset($_SESSION["locr"]))
+ $locr=$_SESSION["locr"];
+else
+ $locr='.';
if(isset($_GET["clock"]) && $_GET["clock"]==1) {
ob_start();
diff --git a/boca-1.5.2/tools/icpc.etc.tgz b/boca-1.5.2/tools/icpc.etc.tgz
index 600a81d..12d92b2 100644
--- a/boca-1.5.2/tools/icpc.etc.tgz
+++ b/boca-1.5.2/tools/icpc.etc.tgz
Binary files differ