<?php define( '_BIGNIGHT_EXEC', 1 );?>
<?php session_start();?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php require_once("include/helper.php"); ?>
<?php require_once("include/user.php"); ?>

<html lang="en-US">

<head>
	<meta name="Generator" content="php" />
	<meta name="Author" content="toxicman.info" />
	<meta name="Keywords" content="club, party, events" />
	<meta name="Description" content="Local events in one click" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	
	<title>Big Night Out</title>
	<link rel="stylesheet" href="css/template.css" type="text/css" />
	<link rel="SHORTCUT ICON" href="favicon.ico">
	
	<script type="text/javascript" src="js/verify.js"></script>
	<script type="text/javascript" src="js/highlights.js"></script>
	<script type="text/javascript" src="js/expand.js"></script>
	<script type="text/javascript" src="js/banner.js"></script>
</head>

<body>
	<div id="events"><?php echo get_events(); ?></div>
	<div id="subscriptions"><?php echo get_subscriptions(); ?></div>
	
	<div class="wrapper">
<!-- HEADER -->
		<div id="header">
			<?php require_once("include/header.php"); ?>
		</div>
<!-- END OF HEADER -->
		<div id="error"></div>
		<div id="content">
<!-- BODY  -->
			<?php View($_GET["view"]);	?>
			
<!-- END OF BODY -->
		</div>
		<div class="push"></div>
	</div>
<!-- FOOTER  -->
	<div class="footer">
		<?php require_once("include/footer.php"); ?>
	</div>
<!-- END OF FOOTER  -->
</body>

<script type="text/javascript">
	document.getElementById("error").innerHTML = "<?php echo str_replace('"','\"',$error); ?>";
</script>
</html>