<?php
ob_start();
include("config.php");

?>

<html>
<head>
<title>Ultimatecrime - Gratis Online Multiplayer Game!</title>
<link rel="stylesheet" type="text/css" href="layout/styles/menu_right.css">
</head>
<body bgcolor="#000000">
<table width="138" height="547" border="0" cellpadding="0" cellspacing="0">
	<tr>

<?php

	if($data){

?>

		<td width="137" height="547">
		<table width="137" height="547" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td background="layout/images/layout_13.gif" width="137" height="30">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_16.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_22.gif" width="137" height="118" VALIGN="top">
				&nbsp;&nbsp;<a href="speler-huwelijk.php" target="content">Trouwen</a><br />
				&nbsp;&nbsp;<a href="speler-garage.php" target="content">Jouw garage</a> <br />
				&nbsp;&nbsp;<a href="beheer-kogelfabriek.php" target="content">Kogelfabriek Beheer</a><br />
				&nbsp;&nbsp;<a href="beheer-casino.php" target="content">Casino Beheer</a><br />
				&nbsp;&nbsp;<a href="beheer-ziekenhuis.php" target="content">Ziekenhuis Beheer</a><br />
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_31.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_37.gif" width="137" height="127">

<?php

		if($data->familie != ""){
		echo "&nbsp;&nbsp;<a href=\"netwerken-overzicht.php\" target=\"content\">Alle netwerken</a><br />";
		echo "&nbsp;&nbsp;<a href=\"fampage.php\" target=\"content\">Netwerk pagina</a><br />";
		} if($data->famconsig == 1 || $data->famleader == 1) {
		echo "&nbsp;&nbsp;<a href=\"fambank.php\" target=\"content\">Netwerk bank</a><br />";
		} if($data->famleader == 1 || $data->famsotto == 1) {
		echo "&nbsp;&nbsp;<a href=\"famshop.php\" target=\"content\">winkel</a> - <a href=\"fammsg.php\" target=\"content\">Bericht</a><br />";
		echo "&nbsp;&nbsp;<a href=\"uitnodigen.php\" target=\"content\">Inviten</a> - <a href=\"famedit.php\" target=\"content\">Beheer</a><br />";
		} if($data->familie == "") {
		echo "&nbsp;&nbsp;<a href=\"netwerken-overzicht.php\" target=\"content\">Alle netwerken</a><br />";
		echo "&nbsp;&nbsp;<a href=\"beginfam.php\" target=\"content\">Netwerk opzetten</a><br />";
		} if($data->faminvite != ""){
		echo "&nbsp;&nbsp;<a href=\"joinfam.php\" target=\"content\">Stap in het netwerk</a><br />";
		} if($data->famleader == 0 && $data->familie != ""){
		echo "&nbsp;&nbsp;<a href=\"outfam.php\" target=\"content\">Stap uit het netwerk</a><br />";
		} else if($data->famleader == 1) {
		echo "&nbsp;&nbsp;<a href=\"outfam.php\" target=\"content\">Verwijder het netwerk</a><br />";
		}

?>
				<br />
				</td>
			</tr>

<?php

		if(($data) && $data->level == 3){
		$dbres	=	mysql_query("SELECT * FROM `admin` WHERE `login`='{$data->login}'");
		$admin	=	mysql_fetch_object($dbres);
			if($admin->level == 3){

?>

			<tr>
				<td background="layout/images/layout_43.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_49.gif" width="137" height="173">
				&nbsp;&nbsp;<a href="admin-bot.php" target="content">Bot Test</a><br />
				&nbsp;&nbsp;<a href="admin-message.php" target="content">Massa Mail</a><br />
				&nbsp;&nbsp;<a href="admin-mail.php" target="content">Massa E-mail</a><br />
				&nbsp;&nbsp;<a href="admin-bericht.php" target="content">Message Tracker</a><br />
				&nbsp;&nbsp;<a href="admin-poll.php" target="content">Admin Poll</a><br />
				&nbsp;&nbsp;<a href="admin-paneel.php" target="content">Admin Paneel</a><br />
				&nbsp;&nbsp;<a href="admin-helppagina.php" target="content">Admin Helppagina</a><br />
				&nbsp;&nbsp;<a href="admin-search.php" target="content">Admin Search</a><br />
				&nbsp;&nbsp;<a href="admin-donatie.php" target="content">Admin Donatie</a><br />
				</td>
			</tr>

<?php

			} else if($admin->level == 2){

?>

			<tr>
				<td background="layout/images/layout_43.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_49.gif" width="137" height="173">
				&nbsp;&nbsp;<a href="admin-bot.php" target="content">Bot Test</a><br />
				&nbsp;&nbsp;<a href="admin-message.php" target="content">Massa Mail</a><br />
				&nbsp;&nbsp;<a href="admin-mail.php" target="content">Massa E-mail</a><br />
				&nbsp;&nbsp;<a href="admin-bericht.php" target="content">Message Tracker</a><br />
				&nbsp;&nbsp;<a href="admin-poll.php" target="content">Admin Poll</a><br />
				&nbsp;&nbsp;<a href="admin-paneel.php" target="content">Admin Paneel</a><br />
				&nbsp;&nbsp;<a href="admin-forum.php" target="content">Admin Forum</a><br />
				&nbsp;&nbsp;<a href="admin-search.php" target="content">Admin Search</a><br />
				&nbsp;&nbsp;<a href="admin-helppagina.php" target="content">Admin Helppagina</a><br />
				</td>
			</tr>

<?php

			} else if($admin->level == 1){

?>

			<tr>
				<td background="layout/images/layout_43.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_49.gif" width="137" height="173">
				&nbsp;&nbsp;<a href="admin-bot.php" target="content">Bot Test</a><br />
				&nbsp;&nbsp;<a href="admin-message.php" target="content">Massa Mail</a><br />
				&nbsp;&nbsp;<a href="admin-mail.php" target="content">Massa E-mail</a><br />
				&nbsp;&nbsp;<a href="admin-bericht.php" target="content">Message Tracker</a><br />
				&nbsp;&nbsp;<a href="admin-poll.php" target="content">Admin Poll</a><br />
				&nbsp;&nbsp;<a href="admin-forum.php" target="content">Admin Forum</a><br />
				&nbsp;&nbsp;<a href="admin-paneel.php" target="content">Admin Paneel</a><br />
				&nbsp;&nbsp;<a href="admin-helppagina.php" target="content">Admin Helppagina</a><br />
				</td>
			</tr>

<?php

			}
		} else {

?>

			<tr>
				<td background="layout/images/layout_68.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_49.gif" width="137" height="173">
				</td>
			</tr>

<?php

	}

?>

		</table>
		</td>
		<td width="1" height="547">
		<table width="1" height="547" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td background="layout/images/layout_14.gif" width="1" height="30">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_17.gif" width="1" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_23.gif" width="1" height="118">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_32.gif" width="1" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_38.gif" width="1" height="127">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_44.gif" width="1" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_50.gif" width="1" height="173">
				</td>
			</tr>
		</table>
		</td>

<?php

	} else {

?>

		<td width="137" height="547">
		<table width="137" height="547" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td background="layout/images/layout_13.gif" width="137" height="30">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_64.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_22.gif" width="137" height="118">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_66.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_37.gif" width="137" height="127">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_68.gif" width="137" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_49.gif" width="137" height="173">
				</td>
			</tr>
		</table>
		</td>
		<td width="1" height="547">
		<table width="1" height="547" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td background="layout/images/layout_14.gif" width="1" height="30">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_63.gif" width="1" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_23.gif" width="1" height="118">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_65.gif" width="1" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_38.gif" width="1" height="127">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_67.gif" width="1" height="33">
				</td>
			</tr>
			<tr>
				<td background="layout/images/layout_50.gif" width="1" height="173">
				</td>
			</tr>
		</table>
		</td>

<?php

	}

?>

	</tr>
</table>
</body>
</html>