<?php

require_once "global.php";
require_once "inc/class.rooms.php";

if (isset($_GET['goto']))
{
	$redirect = "/client.php?goto=".$_GET['goto'];
	$roomid = mysql_real_escape_string($_GET['goto']);
	$rname = RoomManager::GetRoomVar($roomid, "caption");
	$rowner = RoomManager::GetRoomVar($roomid, "owner");
	$rdesc = RoomManager::GetRoomVar($roomid, "description");
}
else
{
	echo '<center><h1>Es wurde kein Raum zur Weiterleitung angegeben</h1></center>';
}
?>
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/static/js/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="/web-gallery/static/styles/common.css" type="text/css" /> 
 
<meta name="description" content="Habbo Hotel - Freunde treffen, Spaß haben und berühmt werden." /> 
<meta name="keywords" content="Habbo Hotel , virtuell, Welt, social network, gratis, community, avatar, chat, online, teen, Rollenspiel, anmelden, sozial, Gruppen, Foren, sicher, spielen, games, online, Freunde, teens, rares, rare Möbel, sammeln, erstellen, sammeln, treffen, Möbel, furni, Haustiere, Raum erstellen, teilen, Ausdruck, Badges, Treffpunkt, Musik, Stars, Starchats, VIPs, mmo, mmorpg, massiv multiplayer" /> 
 
 
 
<!--[if IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/static/styles/ie8.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/static/styles/ie.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/static/styles/ie6.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
 
<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]--> 
<meta name="build" content="63-BUILD733 - 14.09.2011 12:49 - de" /> 
</head> 
<body> 
<div style="width:500px; margin: 0 auto; text-align: left" id="content">

<div class="habblet-container">		

	<div class="cbb clearfix blue">

		<h2 class="title">Willkommen im Habbo Hotel.</h2>

	<div class="habblet box-content">

			<img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/v2/images/facebook/app_habbo_hotel_image.gif" style="float: left; margin-right: 20px; width: 75px; height: 75px"/>

			<div id="fb-like-room-details" style="float: left; width: 300px">

				<h4 style="margin: 0; padding: 0">Raumname</h4>

				<?php echo $rname ?>

				<h4 style="margin: 10px 0 0 0; padding: 0">Besitzer</h4>

				<?php echo $rowner ?>

				<h4 style="margin: 10px 0 0 0; padding: 0">Beschreibung</h4>
				<?php if ($rdesc == "") { ?>
					<em style="color: #999">Keine Beschreibung - sehr seltsam!</em>
				<?php } else { echo $rdesc; } ?>

				<p style="margin-top: 20px" class="clearfix">


				<div id="room-opened-notice" style="display: none; padding: 10px; border: #5b5 2px solid; ">Raum wurde während deiner Habbo Sitzung geöffnet - bitte kontrolliere ob sich Habbo in einem anderen Browserfenster befindet.</div>

				<div style="display: none; vertical-align: middle;" id="progress"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/536/web-gallery/v2/images/lightwindow/ajax-loading.gif" width="31" height="31" style="vertical-align: middle;"/> Gewünschter Raum lädt</div>

				</p>

			</div>			

	</div>

									

	</div>

</div>

</div>


<script type="text/javascript">

		HabboClient.isClientPresent(function(response) {

			if (response == false) {

				$("progress").show();

				setTimeout(function() {

					window.location.replace("/client?goto=<?php echo $roomid; ?>");

				}, 1000);

			} else {

		        $("room-opened-notice").show();			  

		        new Ajax.Request("/components/roomNavigation", {

		            parameters: "targetId=1&roomType=private&move=true"

		        }, false);				

			}

		});

		

</script>
<script type="text/javascript"> 
if (typeof HabboView != "undefined") {
	HabboView.run();
}
</script> 
 