<?php
/*===================================================+
|| # Woodpecker Housekeeping
|+====================================================+
|| # Copyright © 2008 SuperFun. All rights reserved.
|| # http://www.superfunn.nl/
|+===================================================+
|| # Notice: This is free software.
|+===================================================+
|| # Versions.
|| # Housekeeping version: V3.5
|| # Version of this file: V1.1 (header.php)
|+===================================================+
||
|| # Usage of this page:
|| # The header of every page (exept of the login)
||
|+===================================================*/
session_start();

if(strstr($_SERVER['PHP_SELF'], "header.php")){
	exit;
}

include('inc/global.php');
include('config.php');
include('inc/func.php');

if($_SERVER['SERVER_NAME'] == 'virtual-hotel.tk'){
	header('location: http://www.virtual-hotel.tk/');
	exit;
}

if(!$_SESSION['housekeeping_member_id']){
	header('location: index.php');
	exit;
}

$a = mysql_query("SELECT * FROM users WHERE id = '".beveilig($_SESSION['housekeeping_member_id'])."'");
$b = mysql_num_rows($a);
if($b < 0){
	logboek("auto uitgelogd: deze gebruiker bestaat niet meer", "lol");
	session_destroy();
}
$c = mysql_fetch_array($a);
$username = $c['username'];
$my_id = $c['id'];
include('kleuren.php');

//security
if(!in_array($my_id, $owner_id)){
	if(!min_fuse('housekeeping_login', $my_id)){
		logboek("auto uitegelogd: rank veranderd of housekeeping_login hogergezet", "lol");
		session_destroy();
	}
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/style.css" rel="stylesheet" type="text/css">
<title><?php print $web_name; ?> Housekeeping</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<?php
if($kleur == '#0066cc'){
	$kleuri = '#000099';
}else{
	$kleuri = $kleur;
}
?>
<style>
A:link    {color: <?php echo $kleuri; ?>; }
A:visited {color: <?php echo $kleuri; ?>; }
</style>
</head>

<body>

<div id="Layer1" style="position:absolute; left:219px; top:55px; width:723px; height:725px; z-index:0">
  <table width="725" align="center" cellpadding="4" cellspacing="1" bgcolor="#000000">
    <tbody>
      <tr>
        <td width="175" bgcolor="<?php echo $kleur; ?>"><span class="WHITE">Content</span></td>
      </tr>
      <tr>
        <td height="20" align="left" valign="top" bgcolor="#ffffff">