diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-11-03 11:03:02 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-11-03 11:03:02 +0000 |
| commit | f099cf6214a24104e4b3d66bbda110cdb1703ac2 (patch) | |
| tree | b98c050ada28877a3472f41895c93e1c27e7d6c9 | |
| parent | f99a16bd90e8a3d3b4e8f9ecfe4d8f52f54c6e75 (diff) | |
| download | boca-f099cf6214a24104e4b3d66bbda110cdb1703ac2.tar.gz boca-f099cf6214a24104e4b3d66bbda110cdb1703ac2.zip | |
inclusion of automatic configuration for webcast according to the site info;
permission of accessing webcast to admin or score typed users
| -rw-r--r-- | boca-1.5.2/src/webcast/config.php | 23 | ||||
| -rw-r--r-- | boca-1.5.2/tools/icpc.etc.tgz | bin | 9525 -> 9525 bytes |
2 files changed, 20 insertions, 3 deletions
diff --git a/boca-1.5.2/src/webcast/config.php b/boca-1.5.2/src/webcast/config.php index 843842b..2a4ba7e 100644 --- a/boca-1.5.2/src/webcast/config.php +++ b/boca-1.5.2/src/webcast/config.php @@ -1,8 +1,25 @@ <?php +$loc = $locr = ".."; +require_once("$locr/globals.php"); +require_once("$locr/db.php"); +if(!ValidSession()) { + InvalidSession("webcast/index.php"); + ForceLoad("$loc/index.php"); +} +if($_SESSION["usertable"]["usertype"] != "admin" && $_SESSION["usertable"]["usertype"] != "score") { + IntrusionNotify("webcast/index.php"); + ForceLoad("$loc/index.php"); +} -$contest = 1; -$site = 1; +$contest = $_SESSION["usertable"]["contestnumber"]; +$site = $_SESSION["usertable"]["usersitenumber"]; -$freezeTime = 240; +if(($ct = DBSiteInfo($contest, $site)) == null) + ForceLoad("../index.php"); + +if(isset($_GET['full']) && $_GET['full'] > 0 && $_SESSION["usertable"]["usertype"] == "admin") + $freezeTime = $ct['siteduration']; +else + $freezeTime = $ct['sitelastmilescore']; ?> diff --git a/boca-1.5.2/tools/icpc.etc.tgz b/boca-1.5.2/tools/icpc.etc.tgz Binary files differindex 7086f48..600a81d 100644 --- a/boca-1.5.2/tools/icpc.etc.tgz +++ b/boca-1.5.2/tools/icpc.etc.tgz |