<?
session_start();
if($_SESSION['logged'] == 'true'){
require("database.php");
require_once('class/gui_class.php');
$gui = new GUI;
?>
<HTML>
<HEAD>
<TITLE>Dominant Evil</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style>
body, td, th {
background: #1E1E1E url(images/index_01.jpg) top repeat-x;
color: #fff;
font-size: 11px;
font-family: Verdana;
}
#foot {
color: #fff;
font-size: 11px;
font-family: Verdana;
width: 808px;
height: 24px;
background: #1E1E1E url(images/footbg.jpg) top center repeat-x;
}
a, a:visited {
color: #D9C5C5;
font-weight: bold;
text-decoration: none;
}
a:hover, a:active {
color: #fff;
font-weight: bold;
text-decoration: none;
}
#head {
background: #1E1E1E url(images/index_02.jpg) no-repeat;
width: 808px;
height: 154px;
}
#menu {
background: #1E1E1E url(images/index_04.jpg) no-repeat;
width: 808px;
height: 30px;
}
#body {
background: #1E1E1E url(images/index_05.jpg) repeat-y;
width: 808px;
height: 500px;
}
</style>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (psd.psd) -->
<TABLE align=center width='808' BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD colspan='2' valign='top' id='head'>
</TD>
</TR>
<TR>
<TD colspan='2' valign='top' id='menu'>
<?
$gui->Menu();
?>
</TD>
</TR>
<TR>
<TD valign='top' id='body'>
<?
$gui->GetPage();
?>
</TD>
<td>
<?
$gui->GameInfo();
?>
<br />
<?
echo "User: " . $_SESSION["user"];
echo " | Logout? <a href='logout.php' title='Logout'>[X]</a>";
?>
</td>
</TR>
<tr>
<td align='right' id='foot'>copyright by Nosf // 2008 | core engine by <a href=''>Dominant Creature</a></td>
</tr>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
<?
}
else {
header("Location: login.php");
}
?>