<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 PHPRetro. All rights reserved.
|| #
http://www.horro.co.uk
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| #
http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| #
http://opensource.org/licenses/gpl-license.php
\+================================================================*/
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("client.hotel");
if(isset($_SESSION['reauthenticate']) && $_SESSION['reauthenticate'] == "true"){
$_SESSION['page'] = $_SERVER["REQUEST_URI"];
header("Location: ".PATH."/account/reauthenticate"); exit;
}else{
$user = new HoloUser($user->name,$user->password,true);
$_SESSION['user'] = $user;
}
$forwardid = $input->HoloText($_GET['forwardId']);
$roomid = $input->HoloText($_GET['roomId']);
$shortcut = $_GET['shortcut'];
switch($shortcut){
case "roomomatic": $shortcut = "1"; break;
default: unset($_GET['shortcut']); break;
}
$A = rand(10000,20000);
$B = rand(20000,30000);
$C = rand(30000,40000);
$D = "Habfu";
$ticket = $D."-".$A.$B.$C;
$GLOBALS['serverdb']->query("UPDATE users SET auth_ticket = '".$ticket."' WHERE id = '".$user->id."'");
$myticket = $GLOBALS['serverdb']->fetch_assoc($GLOBALS['serverdb']->query("SELECT * FROM users WHERE id = '".$user->id."'"));
?>
<!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" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Habfu - Hotellet </title>
<link rel="stylesheet" href="http://www.thotell.nl/web-gallery/static/styles/common.css" type="text/css"/>
<script src="http://www.thotell.nl/web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="http://www.thotell.nl/web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="http://www.thotell.nl/web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="http://www.thotell.nl/web-gallery/static/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
document.habboLoggedIn = true;
var habboReqPath = "";
</script>
<link rel="stylesheet" href="http://www.thotell.nl/web-gallery/static/styles/habboflashclient.css" type="text/css"/>
<script src="http://www.thotell.nl/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "0",
"client.notify.cross.domain" : "1",
"connection.info.host" : "5.194.151.78",
"connection.info.port" : "2000",
"site.url" : "<?php echo PATH; ?>",
"url.prefix" : "<?php echo PATH; ?>",
"client.reload.url" : "<?php echo PATH; ?>/flash_client",
"client.fatal.error.url" : "<?php echo PATH; ?>/flash_client_error",
"client.connection.failed.url" : "<?php echo PATH; ?>/client_connection_failed",
"external.variables.txt" : "<?php echo PATH; ?>/r63/gamedata/external_variables.txt",
"external.texts.txt" : "<?php echo PATH; ?>/r63/gamedata/external_flash_texts.txt",
"productdata.load.url" : "<?php echo PATH; ?>/r63/gamedata/productdata.txt",
"furnidata.load.url" : "<?php echo PATH; ?>/r63/gamedata/furnidata.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $myticket['auth_ticket']; ?>",
"processlog.enabled" : "1",
"account_id" : "43563936",
"client.starting" : "Vent litt, bestemor starter sakte men sikkert opp.",
"flash.client.url" : "http://<?php echo PATH; ?>/r63/",
"user.hash" : "43563936e6ff41067cab57c87ddd240c36644a5b",
"has.identity" : "1",
"flash.client.origin" : "popup"
};
var params = {
"base" : "<?php echo PATH; ?>/r63/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
FlashExternalInterface.signoutUrl = "<?php echo PATH; ?>/account/logout?token=2fc05b0566";
var clientUrl = "<?php echo PATH; ?>/r63/Habbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://www.thotell.nl/web-gallery/flash/expressInstall.swf", flashvars, params, null, FlashExternalInterface.embedSwfCallback);
window.onbeforeunload = unloading;
function unloading() {
var clientObject;
if (navigator.appName.indexOf("Microsoft") != -1) {
clientObject = window["flash-container"];
} else {
clientObject = document["flash-container"];
}
try {
clientObject.unloading();
} catch (e) {}
}
window.onresize = function() {
HabboClient.storeWindowSize();
}.debounce(0.5);
</script>
<META HTTP-EQUIV="Cache-Control" CONTENT="max-age=0">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META http-equiv="expires" content="0">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head>
<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="http://www.thotell.nl/web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;"/>
<div id="overlay"></div>
<div id="client-ui">
<div id="flash-wrapper">
<div id="flash-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">Please update your Flash Player to the latest version.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.thotell.nl/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player"/></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
<noscript>
<div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
<p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
</body>
</html>
<?php
require_once('./templates/client_footer.php');
?>