<?php
include('core.php');
include('includes/session.php');
$forward = 0;
if($remote_ip == "25.80.151.27" || $remote_ip == "25.80.151.27" && $server_on_localhost == 1){
$ip = "25.80.151.27";
}
if(isset($_GET['roomId'])){
$roomid = mysql_real_escape_string($_GET['roomId']);
$checksql = mysql_query("SELECT roomtype FROM rooms WHERE id = '".$roomid."' LIMIT 1");
$roomexists = mysql_num_rows($checksql);
if($roomexists > 0){
$roominfo = mysql_fetch_array($checksql);
$forward = 1;
if($roominfo['roomtype'] == 'public')
$forward_type = 1;
else
$forward_type = 2;
}
}
if(isset($_GET['nome'])){
$nome = Filtertext($_GET['nome']);
$check = mysql_query("SELECT * FROM users WHERE username LIKE '".$nome."'");
$check1 = mysql_fetch_assoc($check);
} else {
$myticket = GenerateTicket();
mysql_query("UPDATE users SET auth_ticket = '".$myticket."', ip_last = '".$remote_ip."' WHERE id = '".$my_id."' LIMIT 1") or die(mysql_error());
}
?>
<!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="X-UA-Compatible" content="IE=7" />
<title>Lazy :: Client</title>
<link rel="shortcut icon" type="image/png" sizes="64x64" href="<?php echo $path; ?>/favicon.png">
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo $path; ?>/apple/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="<?php echo $path; ?>/apple/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo $path; ?>/apple/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="<?php echo $path; ?>/apple/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo $path; ?>/apple/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo $path; ?>/apple/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo $path; ?>/apple/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo $path; ?>/apple/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo $path; ?>/apple/apple-icon-180x180.png">
<link rel="manifest" href="<?php echo $path; ?>/android/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="<?php echo $path; ?>/icon-144x144.png">
<meta name="description" content="Lazy Hotel: La bellezza del classico e l'avventura del nuovo" />
<meta name="keywords" content="Lazy hotel, virtuale, mondo, social network, gratis, community, avatar, personaggio, chat, online, giovane, ragazzi, gioco di ruolo, giochi di ruolo, iscriviti, social, gruppi, forum, sicurezza, giocare, giochi, online, amici, giovani, rari, furni rari, collezione, creare, collezionare, connettersi, furni, mobili, cuccioli, animali, creazione stanze, condivisione, espressione, distintivi, badge, uscire, musica, VIP, celebrit?, visite VIP, famosi, mmo, mmorpg, multiplayer" />
<script type="text/javascript"> var andSoItBegins = (new Date()).getTime(); </script>
<script src="flashclient/libs2.js" type="text/javascript"></script>
<script src="flashclient/visual.js" type="text/javascript"></script>
<script src="flashclient/libs.js" type="text/javascript"></script>
<script src="flashclient/common.js" type="text/javascript"></script>
<script src="flashclient/habboflashclient.js" type="text/javascript"></script>
<script src="/habboflashclient.js" type="text/javascript"></script>
<link rel="stylesheet" href="flashclient/style.css" type="text/css" />
<link rel="stylesheet" href="flashclient/bottons.css" type="text/css" />
<link rel="stylesheet" href="flashclient/boxes.css" type="text/css" />
<link rel="stylesheet" href="flashclient/tooltips.css" type="text/css" />
<link rel="stylesheet" href="flashclient/changepassword.css" type="text/css" />
<link rel="stylesheet" href="flashclient/habboclient.css" type="text/css" />
<link rel="stylesheet" href="flashclient/habboflashclient.css" type="text/css" />
<script type="text/javascript">
var habboReqPath = "";
var habboStaticFilePath = "<?php echo $path; ?>/web-gallery";
var habboImagerUrl = "http://25.80.151.27/habbo-imaging/";
var habboDefaultClientPopupUrl = "http://25.80.151.27/client.php";
</script>
<script type="text/javascript">
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "25.80.151.27",
"connection.info.port" : "30000",
"site.url" : "http://25.80.151.27/",
"url.prefix" : "http://25.80.151.27/",
"client.reload.url" : "http://25.80.151.27/client.php",
"client.fatal.error.url" : "http://25.80.151.27/404.php",
"client.connection.failed.url" : "http://25.80.151.27/404.php",
"external.variables.txt" : "http://25.80.151.27/r63/gamedata/external_variables.php",
"external.texts.txt" : "http://25.80.151.27/r63/gamedata/external_flash_texts.txt",
"productdata.load.url" : "http://25.80.151.27/r63/gamedata/productdata.txt",
"furnidata.load.url" : "http://25.80.151.27/r63/gamedata/furnidata.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $myticket; ?>",
<?php
if($forward){
echo '"forward.type" : "'.$forward_type.'",';
echo '"forward.id" : "'.$roomid.'",';
}
?>
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Lazy Hotel, vivi il divertimento!",
"flash.client.url" : "http://25.80.151.27/r63/dcr/hof_furni/",
"user.hash" : "",
"has.identity" : "1",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://25.80.151.27/r63/gordon/r63/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
FlashExternalInterface.signoutUrl = "http://25.80.151.27/logout.php";
var clientUrl = "http://25.80.151.27/r63/gordon/r63/Habbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "flashclient/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>
<!--[if IE 8]>
<link rel="stylesheet" href="flashclient/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="flashclient/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="flashclient/ie6.css" type="text/css" />
<script src="flashclient/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]-->
</head>
<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="flashclient/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">Aggiorna Flash Player all'ultima versione disponibile</h2>
<div class="box-content">
<p>Puoi scaricare e istallare Adobe Flash Player <a href="http://get.adobe.com/flashplayer/">da questa URL</a>. Puoi trovare le istruzioni di istallazione <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">cliccando qui</a>.</p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="flashclient/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget"><?php echo $online_count; ?> Utenti in Hotel</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
if (window.opener && window.opener != window && window.opener.location.href == "/") {
window.opener.location.replace("/me");
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>
<?php
$pachetto = mysql_query("SELECT * FROM users WHERE id = '".$my_id."'");
$selezionetv = mysql_fetch_assoc($pachetto);
if($selezionetv['tv_client'] == '1' || $selezionetv['tv_rai'] == '1'){
?>
<div style="position: absolute; top: 190px; right: 5px; color: rgb(255,255,255); font-weight: bold; font-family: cursive;
padding: 5px 8px; border-radius: 7px; cursor: pointer; z-index:999; border: 2px solid rgb(204, 204, 204);
width: 172px; box-shadow:1px 1px rgba(0,0,0,0.8); text-shadow: black 0px 2px 0px; text-align: center;
background: 100% 50% no-repeat rgba(0,0,0,0.8);"
onclick="document.getElementById('client_rai').style['display'] = 'block';">
Rai Tv
</div>
<div id="client_rai" style=" display: none; position: absolute; background-color: rgba(0,0,0,0.5); top: 0; left: 0;
width: 100%; height: 100%; z-index:100000; font-family: Tahoma; z-index:1000;">
<div style="position: absolute; top: 120px; right: 460px; color: #ffffff; font-weight: bold; font-size: 25px;
cursor: pointer; font-family: cursive;"
onclick="document.getElementById('client_rai').style['display'] = 'none';">
Nascondi Tv
</div>
<iframe src="<?php echo $path; ?>/rai.php" scrolling="no" style="border: 2px solid black; display: block; margin: 160px auto 0 auto; border: 0; height: calc(100% - 230px); width: 370px;"></iframe>
</div></div>
<img src="<?php echo $path; ?>/imgs/tv-icon.png" style="position: absolute; top: 192px; right: 9px; cursor: pointer; z-index: 999; border-radius: 5px;">
<img src="<?php echo $path; ?>/imgs/tv-icon.png" style="position: absolute; top: 192px; right: 169px; cursor: pointer; z-index: 999; border-radius: 5px;">
<?php } ?>
<script type="text/javascript">
HabboView.run();
</script>
</body>
</html>