aboutsummaryrefslogtreecommitdiff
path: root/old/webcast/config.php
blob: b16deb61714ca6dbe227bec54fb4ff80ce10c57f (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") {
	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'];

?>