<?php
#############################################################################
#|-| |-| KashCMS v2.0 - Desenvolvida pelo LoToS |-| |-|#
#|-| |-| Baseada em HoloCMS & KashCMS |-| |-|#
# ------------------------------------------------------------------------- #
#|-| |-| Contato oficial: everton.pezinho@hotmail.com |-| |-|#
#|-| |-| Contato oficial: lotos.oficial@gmail.com |-| |-|#
#############################################################################
$myrealip = $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"] ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];
require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');
$SQL=mysql_query("SELECT * FROM user_tickets WHERE userid = '".$my_id."'");
echo mysql_error();
$N=mysql_num_rows($SQL);
if($N==0){
mysql_query("INSERT INTO `user_tickets` SET `user_tickets`.`userid` = '".$my_id."', `user_tickets`.`sessionticket` = '".GenerateTicket()."', `user_tickets`.`ipaddress` = '".$myrealip."'") or die(mysql_error());
}else{
mysql_query("UPDATE `user_tickets` SET `user_tickets`.`sessionticket` = '".GenerateTicket()."', `user_tickets`.`ipaddress` = '".$myrealip."' WHERE `userid` = '".$my_id."'") or die(mysql_error());
}
$ticketsql = mysql_query("SELECT * FROM user_tickets WHERE userid = '".$my_id."'") or die(mysql_error());
$ticketrow = mysql_fetch_assoc($ticketsql);
if($user_rank < 1 && $online_count >= $client_limit['value']){
require_once('./templates/login_subheader.php');
require_once('./templates/login_header.php');
?>
<br>
<div id="intermediate">
<h2><center>Limite de usuários alcançado!</center></h2>
<div id="enter-hotel">
<div class="open enter-btn">
<a href="/me" target="client" onClick="return onClientOpen(this)">Voltar a página principal<i></i></a><b></b>
</div>
</div>
<div id="info">
Atualmente, possuimos <b><?php echo $online_count; ?> usuários online </b> o limite de usuários online é <b><?php echo $client_limit['value']; ?></div>
<?php require_once('./templates/login_footer.php'); }else{ require_once('./templates/client_subheader.php'); ?>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
<?php
$pathd="127.0.0.1:8080";
?>
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "127.0.0.1:8080",
"connection.info.port" : "30000",
"site.url" : "http://127.0.0.1:8080",
"url.prefix" : "http://127.0.0.1:8080/client",
"client.reload.url" : "http://127.0.0.1:8080/client",
"client.fatal.error.url" : "<?php echo $path; ?>/flash_client_error",
"client.connection.failed.url" : "http://127.0.0.1:8080/flash_client_error",
"external.variables.txt" : "<?php echo $external_var; ?>",
"external.texts.txt" : "<?php echo $external_text; ?>",
"productdata.load.url" : "<?php echo $productdata; ?>",
"furnidata.load.url" : "<?php echo $furnidata; ?>",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticketrow['sessionticket']; ?>",
"processlog.enabled" : "1",
"account_id" : "1",
"client.starting" : "Aguarde, o <?php echo $shortname; ?> está carregando!",
"..client.url" : "<?php echo $swf_gordon; ?>",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "1",
"..client.origin" : "popup"
};
var params = {
"base" : "<?php echo $swf_path; ?>",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/account/logout?token=<?php echo sha1($myrow['password']); ?>";
var clientUrl = "<?php echo $swf_flash; ?>";
swfobject.embedSWF(clientUrl, ".-container", "100%", "100%", "10.0.0", "<?php echo $path; ?>/web-gallery/./expressInstall.swf", flashvars, params);
window.onbeforeunload = unloading;
function unloading() {
var clientObject;
if (navigator.appName.indexOf("Microsoft") != -1) {
clientObject = window[".-container"];
} else {
clientObject = document[".-container"];
}
try {
clientObject.unloading();
} catch (e) {}
}
</script>
<!--[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-BUILD406 - 09.05.2011 23:04 - br" />
</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=".-wrapper">
<div id=".-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">É necessário ter o suporte . Player!</h2>
<div class="box-content">
<p>É necessário ter instalado no navegador o Adobe . Player para entrar no Hotel! você poderá baixá-lo <a href="http://get.adobe.com/flashplayer/">Clicando aqui</a>. Mais instruções de como instalar e configurar: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">clique aqui</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="Adobe . 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>Se você não for redirecionado diretamente para a client, por favor <a href="/client">clique aqui</a></p>
</div>
</noscript>
</div>
</div>
<div id="fb-root"></div>
<script type="text/javascript">
(function() {
var e = document.createElement('script');
e.async = true;
e.src = 'https://connect.facebook.net/pt_BR/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
</body>
</html>
<?php } ?>