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

		if(!$data){
		$getal	=	mt_rand(1,2000);
		$user	=	"Crimineel{$getal}";
		} else {
		$user	=	$data->login;
		}

?>

<html>
<head>
<title>Ultimatecrime - Gratis Online Multiplayer Game!</title>
<link rel="stylesheet" type="text/css" href="layout/styles/top_left.css">
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
	function popup(){
	window.open('IRC/NormalApplet.php?nick=<?php echo $user; ?>','mywindow','width=640,height=400') 
	} 
</SCRIPT>
</head>
<body background="layout/images/layout_02.gif">
<table width="350" height="147" align="right" cellpadding="0" cellspacing="0">
	<tr>
		<td width="1" height="147" background="layout/images/layout_03.gif">
		</td>
		<td width="349" height="147" background="layout/images/layout_04.gif">

<?php

	if($data){

?>

		<meta http-equiv="REFRESH" content="60" URL="framework-top-right.php">
		<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="15" class="menu_cell_10px" width="10">&nbsp;</td>
				<td height="15" class="menu_cell_10px">&nbsp;</td>
				<td height="15" class="menu_cell_10px">&nbsp;</td>
				<td height="15" class="menu_cell_10px">&nbsp;</td>
			</tr>
			<tr>
				<td width="10">&nbsp;</td>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_help.gif" width="20" height="20" /></td>
						<td><a href="algemeen-help.php" target="content">Help</a> </td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_instellingen.gif" width="20" height="20" /></td>
						<td><a href="speler-instellingen.php" target="content">Instellingen</a></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_intranet.gif" width="20" height="20" /></td>
						<td><a href="algemeen-intranet.php" target="content">Intranet</a></td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td width="10">&nbsp;</td>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_links.gif" width="20" height="20" /></td>
						<td><a href="algemeen-links.php" target="content"><strong>Promotie</strong></a></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_vip.gif" width="20" height="20" /></td>
						<td><a href="algemeen-vip.php" target="content"><strong>VIP Shop</strong></a></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_world.gif" width="20" height="20" /></td>
						<td><a href="algemeen-destad.php" target="content"><?php echo $data->land; ?></a></td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td width="10">&nbsp;</td>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_forum.gif" width="20" height="20" /></td>
						<td><a href="internet-forum.php" target="content">Forum</a></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_mid_notes.jpg" width="20" height="20" /></td>
						<td><A href="javascript:popup()">IRC Chat</a></td>
					</tr>
				</table>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_links.gif" width="20" height="20" /></td>
						<td><a href="msn.php" target="content"><strong>Msn Invite</strong></a></td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td width="10" height="20">&nbsp;</td>
				<td height="20">&nbsp;</td>
				<td height="20">&nbsp;</td>
				<td height="20">&nbsp;</td>
			</tr>
		</table>

<?php

	} else {

	$dbres		=	mysql_query("SELECT * FROM `gebruiker`");
	$signups	=	mysql_num_rows($dbres);

	$dbres		=	mysql_query("SELECT * FROM `gebruiker` WHERE (UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300)");
	$online		=	mysql_num_rows($dbres);

?>

		<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20" height="15" class="menu_cell_10px">&nbsp;</td>
				<td height="15" class="menu_cell_10px">&nbsp;</td>
				<td height="15" class="menu_cell_10px">&nbsp;</td>
				<td height="15" class="menu_cell_10px">&nbsp;</td>
			</tr>
			<tr>
				<td width="20">&nbsp;</td>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_help.gif" width="20" height="20" /></td>
						<td><a href="algemeen-help.php" target="content">Meer informatie</a> </td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_users.jpg" width="20" height="20" /></td>
						<td><a href="algemeen-stats-criminelen-login.php" target="content">Actieve criminelen</a></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25">&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td width="20">&nbsp;</td>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_stats_logout.gif" width="20" height="20" /></td>
						<td><a href="algemeen-stats-systeem-login.php" target="content">Statistieken</a></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_users.jpg" width="20" height="20" /></td>
						<td><span class="tekst_link"><?php echo $online; ?> online, <?php echo $signups; ?> members</span></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25">&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td width="20">&nbsp;</td>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"><img src="layout/images/icon_plus_blink.gif" width="20" height="20" /></td>
						<td><a href="algemeen-signup.php" target="content"><strong>Meld je nu aan!</strong></a> </td>
					</tr>
				</table>
				</td>
				<td valign="middle" class="menu_cell_normal">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25"></td>
						<td></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="25">&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td width="20" height="20">&nbsp;</td>
				<td>&nbsp;</td>
				<td height="20">&nbsp;</td>
				<td height="20">&nbsp;</td>
			</tr>
		</table>

<?php

	}

?>

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