<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

define('TAB_ID', 5);
define('PAGE_ID', 17);

require_once "global.php";

$articleData = null;

if (isset($_GET['mostRecent']))
{
	$getData = dbquery("SELECT * FROM site_news ORDER BY timestamp DESC LIMIT 1");
	
	if (mysql_num_rows($getData) > 0)
	{
		$articleData = mysql_fetch_assoc($getData);
	}
}
else if (isset($_GET['rel']))
{
	$rel = $_GET['rel'];
	
	if (strrpos($rel, '-') >= 1)
	{
		$bits = explode('-', $rel);
		$id = $bits[0];
		
		$getData = dbquery("SELECT * FROM site_news WHERE id = '" . $id . "' LIMIT 1");
		
		if (mysql_num_rows($getData) > 0)
		{
			$articleData = mysql_fetch_assoc($getData);
		}
	}
}
$tpl->Init();
$tpl->AddIncludeSet('generic');
$tpl->AddIncludeFile(new IncludeFile('text/css', '%www%/web-gallery/v2/styles/personal.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%www%/web-gallery/static/js/habboclub.js'));
$tpl->AddIncludeFile(new IncludeFile('text/css', '%www%/web-gallery/v2/styles/minimail.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', '%www%/web-gallery/v2/styles/rooms.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', '%www%/web-gallery/styles/myhabbo/control.textarea.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%www%/web-gallery/static/js/minimail.js'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%www%/web-gallery/static/js/rooms.js'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%www%/web-gallery/static/js/moredata.js'));
$tpl->WriteIncludeFiles();
$tpl->Output();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

	<title>Dubbo</title>
	
	<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
	<link href="css/print.css" rel="stylesheet" type="text/css" />
	<link href="css/layout.css" rel="stylesheet" type="text/css" />

	<script src="scripts/visual.js" type="text/javascript"></script>
	<script src="scripts/libs.js" type="text/javascript"></script>
	<script src="scripts/fullcontent.js" type="text/javascript"></script>
	<script src="scripts/prototype.js" type="text/javascript"></script>
	<script src="scripts/scriptaculous.js" type="text/javascript"></script>
	<script src="scripts/no.js" type="text/javascript"></script>

	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	
</head>
<script type="text/javascript"> 
var andSoItBegins = (new Date()).getTime();
var ad_keywords = "";
document.habboLoggedIn = %habboLoggedIn%;
var habboName = "%habboName%";
var habboReqPath = "%www%";
var habboStaticFilePath = "http://fubbo.net/images.fubbo.net/habboweb/%web_build%/web-gallery";
var habboImagerUrl = "http://www.habbo.co.uk/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "%www%/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "uberClientWnd"; }
</script> 


<style type="text/css">
        #facebook-frontpage #canvas { background-color: #000000; }
        #footer .footer-links   { color: #666666; }
        #footer .footer-links a { color: #ffffff; }
        #footer .copyright      { color: #666666; }
    </style>
	
	<body id="facebook-frontpage" <?php /* style="background-image: url(/web-gallery/v2/images/registration/registration_background_step3_boy.png); background-repeat: no-repeat; background-position:right;"*/ ?>>

<body>

<div id="container">
	
	<div id="banner" style="background: url(images/xmasheader2.png);">

		<div id="habbosonline">%users_online% User online</div>
		<div id="date">
		<?php
$datum = date("d.m.Y");
$uhrzeit = date("H:i");
echo $datum," - ",$uhrzeit," Uhr";
?>
</div>

		<a href="/" id="logo" style="min-width:154px; min-height:33px; background:url(http://www.habbotimes.net/site/scripts/fontgenerator/font.php?font=7&text=%logoname%) no-repeat;"><img src="http://www.habbotimes.net/site/scripts/fontgenerator/font.php?font=7&text=%logoname%)"></a>

		<div id="nav_tabs_container">
			<div class="navitem" onmouseover="dropdown('nav-1')" onmouseout="dropout('nav-1')" onclick="document.location.replace('%www%/me')">
				<span class="trigger"><div id="nav_home"></div></span></div>
			<div class="navitem" onmouseover="dropdown('nav-3')" onmouseout="dropout('nav-3')" onclick="document.location.replace('%www%/articles')">
				<span class="trigger"><div id="nav_news" onclick=""></div></span>
					</div>
			<div class="navitem" onmouseover="dropdown('nav-8')" onmouseout="dropout('nav-8')" onclick="dropout('nav-8')">
				<span class="trigger"><div id="nav_usable"></div></span>
					<div class="navitem_container" id="nav-8" style="display:none;">
						<div class="navitem_top"></div>
						<div class="navitem_middle">
						<a href="#">Home</a></div> 
						<div class="navitem_middle">
						<a href="#">Staff List</a></div>
						<div class="navitem_bot"></div></div></div>
			<div class="navitem" onmouseover="dropdown('nav-4')" onmouseout="dropout('nav-4')" onclick="dropout('nav-4')">
				<span class="trigger"><div id="nav_goodies"></div></span>
					<div class="navitem_container" id="nav-4" style="display:none;">
						<div class="navitem_top"></div>
						<div class="navitem_middle">
						<a href="#">Home</a></div> 
						<div class="navitem_middle">
						<a href="#">Staff List</a></div>
						<div class="navitem_bot"></div></div></div>
			<div class="navitem" onmouseover="dropdown('nav-5')" onmouseout="dropout('nav-5')" onclick="dropout('nav-5')">
				<span class="trigger"><div id="nav_radio"></div></span>
					<div class="navitem_container" id="nav-5" style="display:none;">
						<div class="navitem_top"></div>
						<div class="navitem_middle">
						<a href="#">Home</a></div> 
						<div class="navitem_middle">
						<a href="#">Staff List</a></div>
						<div class="navitem_bot"></div></div></div>
			<div class="navitem" onmouseover="dropdown('nav-6')" onmouseout="dropout('nav-6')" onclick="dropout('nav-6')">
				<span class="trigger"><div id="nav_guides"></div></span>
					<div class="navitem_container" id="nav-6" style="display:none;">
						<div class="navitem_top"></div>
						<div class="navitem_middle">
						<a href="#">Home</a></div> 
						<div class="navitem_middle">
						<a href="#">Staff List</a></div>
						<div class="navitem_bot"></div></div></div>
			
		</div>
	</div>
	
	<div id="mid">