<?
session_start();
if($_SESSION['logged'] == 'true'){
require("database.php");
require_once('class/gui_class.php');
$gui = new GUI;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link type="text/css" href="style.css" rel="stylesheet">
<title>Dominant Creature</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT SRC="class/boxover.js"></SCRIPT>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="chd">
<tr class="d2">
<td class="d1"></td>
<td width="940" class="dx"> </td>
<td></td>
</tr>
<tr class="hfd">
<td rowspan="2" class="d3">
</td>
<td><table width="940" border="0" cellpadding="0" cellspacing="0" align="center" class="hfd">
<tr>
<td width="257"><table width="257" border="0" cellspacing="0" cellpadding="0" class="hfd">
<tr>
<td colspan="2" style="background: url('img/l_boven.jpg'); width:257px; height:7px"></td>
</tr>
<tr>
<td width="7" style="background: url('img/l_links.jpg'); width:7px; height:492px"></td>
<td width="250" style="background: url('img/image.jpg'); width:250px; height:492px"></td>
</tr>
<tr>
<td colspan="2" style="background: url('img/l_onder.jpg'); width:257px; height:7px"></td>
</tr>
</table></td>
<td width="9" style="background: url('img/ts_stuk.jpg'); width:9px; height:506px"></td>
<td width="674" bgcolor="#141414" valign="top">
<table width="674" style="height:506px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background: url('img/r_boven.jpg'); width:674px; height:7px" colspan="2" style="height:7px;">
</td>
</tr>
<tr>
<td width="667" valign="top"><table width="667" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dmenu">
<a href="index.php" class="menu">Home</a> ·
<a href="#" class="menu">Game Story</a> ·
<a href="#" class="menu">Join us</a> ·
<a href="#" class="menu">News</a> ·
<a href="#" class="menu">Community</a>·
<a href="#" class="menu">BBGDev.com</a>·
<a href="#" class="menu">About</a></td>
</tr>
<tr>
<td style="height:3px; background: url('img/contentmenuline.jpg'); width:667px; height:3px">
</td>
</tr>
<tr>
<td class="content">
<table align="center" width="640" border="0" style='margin-top: 20px; text-align:left;'><tr>
<td width="640" colspan="2" valign='top'>
<?
$gui->Menu();
?>
<br /><br /><br />
</td>
</tr>
<tr>
<td align='right' valign='top' width="520">
<?
$gui->GetPage();
?>
</td>
<td width="120" valign='top'>
<?
$gui->GameInfo();
?>
<br /><br />
</td>
</tr>
<tr>
<td style='padding-right: 40px; margin-top: 20px; border-top: 1px solid #ccc;'>
<?
echo "User: " . $_SESSION["user"];
echo " | Logout? <a href='logout.php' title='Logout'>[X]</a>";
?>
</td>
<td colspan='2' align='right' style='padding-right: 10px; margin-top: 30px; border-top: 1px solid #ccc;'>by <a href='http://www.bbgdev.com/'>Nosf</a> | v 0.5 </td></tr>
</table>
<!-- ###### Template Body ####### -->
</td>
</tr>
</table></td>
<td style="height:3px; background: url('img/r_rechts.jpg'); width:7px; height:492px" width="7">
</td>
</tr>
<tr>
<td style="height:3px; background: url('img/r_onder.jpg'); width:674px; height:7px" colspan="2" style="height:7px;">
</td>
</tr>
</table></td>
</tr>
</table></td>
<td rowspan="2"></td>
</tr>
<tr>
<td class="d4"><a href="#">Dominant Creature</a> | 2008</td>
</tr>
</table>
</body>
</html>
<?
}
else {
header("Location: login.php");
}
?>