aboutsummaryrefslogtreecommitdiff
path: root/old/webcast/config.php
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2013-07-02 05:46:45 +0000
committercassio <cassiopc@gmail.com>2013-07-02 05:46:45 +0000
commitbe2491b093b1f0ca430bede679ecbb670041e483 (patch)
treefe2da63d1811cb93e4352a43a113ace37b9f6017 /old/webcast/config.php
parenta9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (diff)
downloadboca-be2491b093b1f0ca430bede679ecbb670041e483.tar.gz
boca-be2491b093b1f0ca430bede679ecbb670041e483.zip
restructuring of boca's git
Diffstat (limited to 'old/webcast/config.php')
-rw-r--r--old/webcast/config.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/old/webcast/config.php b/old/webcast/config.php
new file mode 100644
index 0000000..b16deb6
--- /dev/null
+++ b/old/webcast/config.php
@@ -0,0 +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") {
+ IntrusionNotify("webcast/index.php");
+ ForceLoad("$loc/index.php");
+}
+
+$contest = $_SESSION["usertable"]["contestnumber"];
+$site = $_SESSION["usertable"]["usersitenumber"];
+
+if(($ct = DBSiteInfo($contest, $site)) == null)
+ ForceLoad("../index.php");
+
+if(isset($_GET['full']) && $_GET['full'] > 0)
+ $freezeTime = $ct['siteduration'];
+else
+ $freezeTime = $ct['sitelastmilescore'];
+
+?>