<?php
require_once ('heliocms/core.php');
require_once ('heliocms/session.php');
mysql_query("UPDATE users SET auth_ticket = '', auth_ticket = '".GenerateTicket()."', ip_last = '', ip_last = '".$ip."' WHERE id = '".$user_q['id']."'") or die(mysql_error());
$ticketsql = mysql_query("SELECT * FROM users WHERE id = '".$user_q['id']."'") or die(mysql_error());
$ticketrow = mysql_fetch_assoc($ticketsql);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<?php
if ($_GET['hash'] == $client_crypto) {
?>
<link rel="stylesheet" href="<?php echo $aka; ?>/habbo-web/america/pt/app.css">
<?php } ?>
<link rel="stylesheet" type="text/css" href="<?php echo $aka; ?>/game-data-server-static//./hotel.css">
<script type="text/javascript" src="<?php echo $aka; ?>/game-data-server-static//./habboapi.js"></script>
</head>
<?php
if ($_GET['hash'] == $client_crypto) {
?>
<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "<?php echo $user_q['username']; ?>; ?>";
var habboId = <?php echo $user_q['id']; ?>;
var facebookUser = false;
var habboReqPath = "";
var habboStaticFilePath = "<?php echo $site; ?>/web-gallery";
var habboImagerUrl = "<?php echo $site; ?>/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "<?php echo $site; ?>/client";
window.name = "3981c0260af76a9eb267d9b2dd7cc602d4c7b7bf";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "3981c0260af76a9eb267d9b2dd7cc602d4c7b7bf"; }
</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" : "localhost",
"connection.info.port" : "30000",
"site.url" : "http://localhost",
"url.prefix" : "http://localhost",
"client.reload.url" : "http://localhost/client",
"client.fatal.error.url" : "http://localhost/disconnected",
"client.connection.failed.url" : "http://localhost/disconnected",
"logout.url" : "http://localhost/disconnected",
"logout.disconnect.url" : "http://localhost/disconnected",
"external.variables.txt" : "http://localhost/images/game/gamedata/external_variables.txt",
"external.texts.txt" : "http://localhost/images/game/gamedata/external_flash_texts.txt",
"productdata.load.url" : "http://localhost/images/game/gamedata/productdata.txt",
"furnidata.load.url" : "http://localhost/images/game/gamedata/furnidata.xml",
/*"figuredata.load.url" : "http://localhost/gamedata/figuredata.xml",*/
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticketrow['auth_ticket']; ?>",
"processlog.enabled" : "1",
"account_id" : "1",
"client.starting.revolving":"Quando voc\u00EA menos esperar...terminaremos de carregar...\/Carregando mensagem divertida! Por favor espere.\/Voc\u00EA quer batatas fritas para acompanhar?\/Siga o pato amarelo.\/O tempo \u00E9 apenas uma ilus\u00E3o.\/J\u00E1 chegamos?!\/Eu gosto da sua camiseta.\/Olhe para um lado. Olhe para o outro. Pisque duas vezes. Pronto!\/N\u00E3o \u00E9 voc\u00EA, sou eu.\/Shhh! Estou tentando pensar aqui.\/Carregando o universo de pixels.",
"client.starting":"Por favor aguarde! O Habbo est\u00E1 carregando...",
"flash.client.url" : "http://localhost/images/game/",
"user.hash" : "25548668ef4d1e86dcbe3db053fd6b7d6240e5bd",
"facebook.user" : "1",
"has.identity" : "1",
"flash.client.origin" : "popup",
"nux.lobbies.enabled" : "true",
"country_code" : "BR"
};
var params = {
"base" : "http://localhost/images/game/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
FlashExternalInterface.signoutUrl = "http://localhost/logout";
var clientUrl = "http://localhost/images/game/Mabbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "<?php echo $site; ?>/web-gallery/flash/expressInstall.swf", flashvars, params);
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) {}
}
</script>
<body id="client" class="flashclient">
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">
<div id="flash-container">
<div ng-if="isOpen && !flashEnabled" class="client-error">
<div class="client-error__text">
<h1 class="client-error__title" translate="CLIENT_ERROR_TITLE">Ops, sem Flash, sem <?php echo $sitename; ?>!</h1>
<p translate="CLIENT_ERROR_FLASH">Se você está utilizando um PC, você precisa <a href="http://www.adobe.com/go/getflashplayer" target="_blank">atualizar ou instalar o Flash player</a>.</p>
<div class="client-error__downloads">
<a href="http://www.adobe.com/go/getflashplayer" ng-href="http://www.adobe.com/go/getflashplayer" target="_blank" class="client-error__flash"></a>
</div>
<p translate="CLIENT_ERROR_MOBILE">Se você está utilizando um iPad, iPhone ou um dispositivo Android você deve baixar o <a href="https://itunes.apple.com/app/id794866182" target="_blank"><?php echo $sitename; ?> para iOS</a> na App Store ou <a href="https://play.google.com/store/apps/details?id=air.com.sulake.habboair" target="_blank"><?php echo $sitename; ?> para Android</a> na Google PlayStore.</p>
<div class="client-error__downloads">
<a href="https://itunes.apple.com/app/id794866182" ng-href="https://itunes.apple.com/app/id794866182" target="_blank" class="client-error__appstore"></a>
<a href="https://play.google.com/store/apps/details?id=air.com.sulake.habboair" ng-href="https://play.google.com/store/apps/details?id=air.com.sulake.habboair" target="_blank" class="client-error__googleplay"></a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<p>My Mustache tells me you tried something funny. Not a bobba, arent you!</p>
<script type="text/javascript">
window.FlashExternalInterface.disconnect();
</script>
<?php } ?>
</body>
</html>