aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.2/src/webcast/config.php
blob: 2a4ba7e173428a2075d579954ebe971d1d432fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 = $_SESSION["usertable"]["contestnumber"];
$site = $_SESSION["usertable"]["usersitenumber"];

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'];

?>