Client BCStorm compatível com SWF SPD 07.06.13 14:55
Oi gente, tudo bem? Eu criei uma client compatível com as novas swfs do DanielSPD ;)
Créditos: 100% MiltonMartins
- Código:
<?php
require_once('./data_classes//server-data.php_data_classes-core.php.php');
require_once('./data_classes//server-data.php_data_classes-session.php.php');
$select = "SELECT * FROM cms_settings WHERE variable='client_ip'";
$result = mysql_query($select);
while($l = mysql_fetch_array($result)){
$cliendfgtip = $l['value'];
}
$select = "SELECT * FROM cms_settings WHERE variable='client_port'";
$result = mysql_query($select);
while($l = mysql_fetch_array($result)){
$clienghjport = $l['value'];
}
mysql_query("UPDATE users SET auth_ticket = '', auth_ticket = '".GenerateTicket()."', ip_last = '', ip_last = '".$remote_ip."' WHERE id = '".$my_id."'") or die(mysql_error());
$ticketsql = mysql_query("SELECT * FROM users WHERE id = '".$my_id."'") or die(mysql_error());
$ticketrow = mysql_fetch_assoc($ticketsql);
$caca="deltoro";
if($caca=="delavaca"){
echo"<meta http-equiv="refresh" content="0;url=".$adminpath."/index/p/login&do=secretcode">";
require_once('./templates/login_subheader.php');
require_once('./templates/login_header.php');
?>
<?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();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "<?php echo $cliendfgtip;?>",
"connection.info.port" : "<?php echo $clienghjport;?>",
"site.url" : "<?php echo $path; ?>",
"url.prefix" : "<?php echo $path; ?>",
"client.reload.url" : "<?php echo $path; ?>/client.php",
"client.fatal.error.url" : "<?php echo $path; ?>/clientutils",
"client.connection.failed.url" : "<?php echo $path; ?>/clientutils",
"external.variables.txt" : "http://SEU IP/gamedata/external_variables.txt",
"external.texts.txt" : "http://SEU IP/gamedata/external_flash_texts.txt",
"safechat.list.txt" : "http://SEU IP/gamedata/safechat.txt",
"productdata.load.url" : "http://SEU IP/gamedata/productdata.txt",
"furnidata.load.url" : "http://SEU IP/gamedata/furnidata.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticketrow['auth_ticket']; ?>",
"processlog.enabled" : "1",
"account_id" : "1",
"client.starting" : " <?php echo $name; ?> Pode demora um pouco para entrar!",
"flash.client.url" : "http://SEU IP/gordon/RELEASE63-201302261208-6898754512/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "1",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://SEU IP/gordon/RELEASE63-201302261208-6898754512/",
"allowScriptAccess" : "always",
"menu" : "false",
"bgcolor" : "#ff0000",
"wmode" : "transparent"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "transparent";
}
FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/account/logout?token=123";
var clientUrl = "http://SEU IP/gordon/RELEASE63-201302261208-6898754512/SPD.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "<?php echo $path; ?>/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>
<div id="overlay"></div>
</div>
</div>
<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/ie6.css" type="text/css" />
<script src="<?php echo $path; ?>/web-gallery/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="<?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">Por favo Atualize o flash .</h2>
<div class="box-content">
<p>Seu navegado não possui o flash para entrar no hotel <a href="http://get.adobe.com/flashplayer/">clique para baixa</a>. Ou você pode uza outro navegador , como o google chorme,mozila etc.</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"></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ê nao esta no client<a href="/client">click Aqui</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
</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>
<div id="fb-root"></div>
<script type="text/javascript">
(function() {
var e = document.createElement('script');
e.async = true;
e.src = 'https://connect.facebook.net/de_DE/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
<!-- tirando bugs de login etc. !-->
<script type="text/javascript">
HabboView.run();
</script>
</body>
<?php } ?>
Créditos: 100% MiltonMartins