Matiaser
Member
- Feb 14, 2013
- 39
- 5
Hi Devbest!
I am using FireStorm. I am using SQL and Swf from the same realese but I just get black client after loading. I get 1 user online on the server and if i shoutdown the emulator the user get diconectet from the black page.
I am using Revcms and I get my hotel with this CMS woring with Bcstom leion edition.
My ad-block is of.
I think my settings is correct but I lave them under if you have time locking on it.
Thanks for help!
Sorry for bad english.
I am using FireStorm. I am using SQL and Swf from the same realese but I just get black client after loading. I get 1 user online on the server and if i shoutdown the emulator the user get diconectet from the black page.
I am using Revcms and I get my hotel with this CMS woring with Bcstom leion edition.
My ad-block is of.
I think my settings is correct but I lave them under if you have time locking on it.
Code:
<script type="text/javascript">
var habboName = "{username}";
var habboReqPath = "{url}";
var habboStaticFilePath = "http://images.habbo.com/habboweb/{web_build}/web-gallery";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "{url}/client";
window.name = "ClientWndw";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
</script>
<link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href="http://www.habbo.com/articles/rss.xml" />
<script src="app/tpl/skins/{skin}/client/libs2.js" type="text/javascript"></script>
<script src="app/tpl/skins/{skin}/client/visual.js" type="text/javascript"></script>
<script src="app/tpl/skins/{skin}/client/libs.js" type="text/javascript"></script>
<script src="app/tpl/skins/{skin}/client/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/{web_build}/web-gallery/static/styles/common.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/{web_build}/web-gallery/static/styles/habboflashclient.css" type="text/css" />
<noscript>
<meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>
<link rel="stylesheet" href="app/tpl/skins/{skin}/client/client.css" type="text/css" />
<script src="app/tpl/skins/{skin}/client/habboflashclient.js" type="text/javascript"></script>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = false;
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" : "192.99.186.73",
"connection.info.port" : "30000",
"site.url" : "{url}/",
"url.prefix" : "{url}/",
"client.reload.url" : "{url}/client",
"client.fatal.error.url" : "{url}/disconnected",
"client.connection.failed.url" : "{url}/disconnected",
"external.variables.txt" : "{external_vars}",
"external.texts.txt" : "{external_texts}",
"productdata.load.url" : "{product_data}",
"furnidata.load.url" : "{furni_data}",
"use.sso.ticket" : "1",
"sso.ticket" : "{sso}",
"processlog.enabled" : "0",
"account_id" : "1",
"client.starting" : "Please wait! {hotelName} is starting up",
"flash.client.url" : "{swf_folder}/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "0",
"flash.client.origin" : "popup",
"token" : "{sso}"
};
var params = {
"base" : "{swf_folder}/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "{swf_folder}/Habbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/{web_build}/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>
<img src="http://images.habbo.com/habboweb/{web_build}/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">Please update your Flash Player to the latest version.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/{web_build}/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>
<div style="display: none">
<div id="habboCountUpdateTarget">
{status}
</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 && typeof window.opener.location.href != "undefined") {
window.opener.location.replace(window.opener.location.href);
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>
<script type="text/javascript">
HabboView.run();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15697942-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Thanks for help!
Sorry for bad english.
<?php
/*
*****************
* @author capos *
*****************
*/
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$width = 100;
$height = 114;
function buildimg($bytes, $width, $height)
{
$img=imagecreatetruecolor($width, $height);imagealphablending($img, false);imagesavealpha($img, true);$x=0;$y=0;
$colors=unpack("N*", implode("",$bytes));
foreach($colors as $color)
{
imagesetpixel($img, $x, $y, (0x7f-($color>>25)<<24)|($color&0xffffff));
if(++$x==$width)
{$x=0;$y++;}
}
header('Content-Type: image/png');
imagepng($img);
}
//if($_GET)
//{
$token = trim($_GET["token"]);
//if(strlen($token) >= 10)
//{
/**
// Stuff to connect to mus and get banner data.. (prime and generator)
$fp = fsockopen("192.99.186.73", 30001, $errno, $errstr, 1);
if (!is_resource($fp))
{
exit("LE FAIL...");
}
$packet = 'setToken'.chr(1).$token;
fwrite($fp, $packet);
fflush($fp);
stream_set_timeout($fp, 1);
$data = fgets($fp, 512);
fclose($fp);
***/
$conexion = mysql_connect("localhost","root","kawasaki123");
mysql_select_db("fire", $conexion);
$result = mysql_fetch_assoc(mysql_query("SELECT bannerdata FROM server_status;",$conexion));
$data = $result['bannerdata'];
//$data="1342451846182550614618898458778670684120590689881624754130339:1135845477726102894817523431022206527949967456094879262187953";
list($prime, $generator) = explode(':', $data);
$insert = chr(strlen($prime)).$prime.chr(strlen($generator)).$generator;
$Length = strlen($token);$Length2 = strlen($insert);
$p = 0;$bitsnum = "";
for($i=0;$i<$Length2;$i++)
{
$bits = base_convert(ord($insert[$i]) ^ ord($token[$p]),10,2);
$need = 8 - strlen($bits);
for($o=0;$o<$need;$o++)$bits = "0".$bits;
$bitsnum .= $bits;
if (++$p == $Length) $p = 0;
}
$insertpos = 0;$Length = strlen($bitsnum);
for ($y = 39; $y < 69; $y++)
{
$a = 0;
for ($r = 4; $r < 84; $r++)
{
$pos = (($y + $a) * $width + $r) * 4;
$b = 1;
while ($b < 4)
{
if($insertpos < $Length)
{
$binaryData = base_convert(ord($pixels[$pos + $b]),10,2);
$need = 8 - strlen($binaryData);
for($o=0;$o<$need;$o++) $binaryData = "0".$binaryData;
$binaryData[7] = $bitsnum[$insertpos];
$pixels[$pos + $b] = chr(base_convert($binaryData,2,10));
$insertpos++;$b++;
continue;
}
break 3;
}
if ($r % 2 == 0) $a++;
}
}
//}
//}
buildimg($pixels, $width, $height);
?>
/*
*****************
* @author capos *
*****************
*/
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$width = 100;
$height = 114;
function buildimg($bytes, $width, $height)
{
$img=imagecreatetruecolor($width, $height);imagealphablending($img, false);imagesavealpha($img, true);$x=0;$y=0;
$colors=unpack("N*", implode("",$bytes));
foreach($colors as $color)
{
imagesetpixel($img, $x, $y, (0x7f-($color>>25)<<24)|($color&0xffffff));
if(++$x==$width)
{$x=0;$y++;}
}
header('Content-Type: image/png');
imagepng($img);
}
//if($_GET)
//{
$token = trim($_GET["token"]);
//if(strlen($token) >= 10)
//{
/**
// Stuff to connect to mus and get banner data.. (prime and generator)
$fp = fsockopen("192.99.186.73", 30001, $errno, $errstr, 1);
if (!is_resource($fp))
{
exit("LE FAIL...");
}
$packet = 'setToken'.chr(1).$token;
fwrite($fp, $packet);
fflush($fp);
stream_set_timeout($fp, 1);
$data = fgets($fp, 512);
fclose($fp);
***/
$conexion = mysql_connect("localhost","root","kawasaki123");
mysql_select_db("fire", $conexion);
$result = mysql_fetch_assoc(mysql_query("SELECT bannerdata FROM server_status;",$conexion));
$data = $result['bannerdata'];
//$data="1342451846182550614618898458778670684120590689881624754130339:1135845477726102894817523431022206527949967456094879262187953";
list($prime, $generator) = explode(':', $data);
$insert = chr(strlen($prime)).$prime.chr(strlen($generator)).$generator;
$Length = strlen($token);$Length2 = strlen($insert);
$p = 0;$bitsnum = "";
for($i=0;$i<$Length2;$i++)
{
$bits = base_convert(ord($insert[$i]) ^ ord($token[$p]),10,2);
$need = 8 - strlen($bits);
for($o=0;$o<$need;$o++)$bits = "0".$bits;
$bitsnum .= $bits;
if (++$p == $Length) $p = 0;
}
$insertpos = 0;$Length = strlen($bitsnum);
for ($y = 39; $y < 69; $y++)
{
$a = 0;
for ($r = 4; $r < 84; $r++)
{
$pos = (($y + $a) * $width + $r) * 4;
$b = 1;
while ($b < 4)
{
if($insertpos < $Length)
{
$binaryData = base_convert(ord($pixels[$pos + $b]),10,2);
$need = 8 - strlen($binaryData);
for($o=0;$o<$need;$o++) $binaryData = "0".$binaryData;
$binaryData[7] = $bitsnum[$insertpos];
$pixels[$pos + $b] = chr(base_convert($binaryData,2,10));
$insertpos++;$b++;
continue;
}
break 3;
}
if ($r % 2 == 0) $a++;
}
}
//}
//}
buildimg($pixels, $width, $height);
?>
## uberEmulator System Configuration File
## Must be edited for the server to work
## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=kawasaki123
db.name=fire
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=100
db.pool.maxsize=200
## Game TCP/IP Configuration
game.tcp.bindip=192.99.186.73
game.tcp.port=30000
game.tcp.conlimit=11000
game.tcp.conperip=100
game.tcp.enablenagles=False
## MUS TCP/IP Configuration
mus.tcp.bindip=192.99.186.73
mus.tcp.port=30001
mus.tcp.allowedaddr=192.99.186.73
## Client configuration
client.ping.enabled=1
client.ping.interval=20000
client.maxrequests=300
#IRC
irc.enabled=false
irc.server=irc.website-service.org
irc.port=6667
irc.user=USER CSharpBot 8 * :I'm a C# irc bot
irc.nick=[VG]Mordi
irc.channel=#habbovg_servermod
irc.password=rofl123
group.enabled=true
auth.ssodisabled=false
#Says wether the users should receive pixels each X seconds, how much and when (When in seconds)
game.pixel.enabled=true
game.pixel.amount=100
game.pixel.time=600
#Says wether the users should receive pixels each X seconds, how much and when (When in seconds)
game.credits.enabled=true
game.credits.amount=1000
game.credits.time=600
game.login.credits.receiveamount=100
game.login.pixel.receiveamount=100
#Threading Main Loops.
#Esta opcion separa del MainGameLoop cada tarea a ejecutar en un proceso distinto.
SeparatedTasksInMainLoops.enabled=true
#Threading GameClientManager Loops.
#Esta opcion separa del GameClientManager.OnCycle las tareas de forma lógica para aumentar rendimiento.
SeparatedTasksInGameClientManager.enabled=false
#Baneo por spam
#Esta opción banea a los usuarios tras sucesivos intentos de flood.
spambans.enabled=false
spambans.limit=20
## Must be edited for the server to work
## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=kawasaki123
db.name=fire
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=100
db.pool.maxsize=200
## Game TCP/IP Configuration
game.tcp.bindip=192.99.186.73
game.tcp.port=30000
game.tcp.conlimit=11000
game.tcp.conperip=100
game.tcp.enablenagles=False
## MUS TCP/IP Configuration
mus.tcp.bindip=192.99.186.73
mus.tcp.port=30001
mus.tcp.allowedaddr=192.99.186.73
## Client configuration
client.ping.enabled=1
client.ping.interval=20000
client.maxrequests=300
#IRC
irc.enabled=false
irc.server=irc.website-service.org
irc.port=6667
irc.user=USER CSharpBot 8 * :I'm a C# irc bot
irc.nick=[VG]Mordi
irc.channel=#habbovg_servermod
irc.password=rofl123
group.enabled=true
auth.ssodisabled=false
#Says wether the users should receive pixels each X seconds, how much and when (When in seconds)
game.pixel.enabled=true
game.pixel.amount=100
game.pixel.time=600
#Says wether the users should receive pixels each X seconds, how much and when (When in seconds)
game.credits.enabled=true
game.credits.amount=1000
game.credits.time=600
game.login.credits.receiveamount=100
game.login.pixel.receiveamount=100
#Threading Main Loops.
#Esta opcion separa del MainGameLoop cada tarea a ejecutar en un proceso distinto.
SeparatedTasksInMainLoops.enabled=true
#Threading GameClientManager Loops.
#Esta opcion separa del GameClientManager.OnCycle las tareas de forma lógica para aumentar rendimiento.
SeparatedTasksInGameClientManager.enabled=false
#Baneo por spam
#Esta opción banea a los usuarios tras sucesivos intentos de flood.
spambans.enabled=false
spambans.limit=20
<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
error_reporting(0);
/*
MySQL management
*/
$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host, usualy localhost
$_CONFIG['mysql']['username'] = 'root'; //MySQL username, default administrative username is root.
$_CONFIG['mysql']['password'] = 'kawasaki123'; //MySQL password, default is not set, it has been set by the administrator.
$_CONFIG['mysql']['database'] = 'fire'; //MySQL database
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port, usualy 3306.
/*
Website settings
*/
$_CONFIG['hotel']['badgeurl'] = '
$_CONFIG['hotel']['url'] = '
$_CONFIG['hotel']['name'] = 'Habx'; // Hotel's name5
$_CONFIG['hotel']['desc'] = 'Habx er tingen!!'; //Hotel's description , not needed
$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance
$_CONFIG['hotel']['motto'] = 'Jeg er best!'; //Default motto users will register with.
$_CONFIG['hotel']['credits'] = 100000; //Default number of credits users will register with.
$_CONFIG['hotel']['pixels'] = 60000; //Default number of pixels users will register with.
$_CONFIG['hotel']['figure'] = 'lg-3201-85-110.hr-3163-42.hd-180-7.ch-3110-85-110.ha-1022-85.ea-3083-85'; //Default figure users will register with.
/*
* Hotel management - Connection variables and swfs.
*/
$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/527'; //Web_Build
$_CONFIG['hotel']['external_vars'] = '
$_CONFIG['hotel']['external_texts'] = '
$_CONFIG['hotel']['product_data'] = '
$_CONFIG['hotel']['furni_data'] = '
$_CONFIG['hotel']['swf_folder'] = '
/*
*
* Templating management - Pick one of our default styles or make yours by following our examples!
*
*/
#RevCMS style & voting system
$_CONFIG['template']['style'] = 'site';
$_CONFIG['thehabbos']['username'] = 'ShockStyle';
$_CONFIG['retro_top']['user'] = 'ShockStyle';
/*
* Social Networking stuff - not needed in shockstyle
*/
$_CONFIG['hotel']['twitter'] = 'Habbo'; //Twitter Username
$_CONFIG['hotel']['twitterwidget_id'] = '345163210678206465'; //Twiter Widget ID
$_CONFIG['hotel']['facebook'] = 'Habbo'; //Facebook Username
?>
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
error_reporting(0);
/*
MySQL management
*/
$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host, usualy localhost
$_CONFIG['mysql']['username'] = 'root'; //MySQL username, default administrative username is root.
$_CONFIG['mysql']['password'] = 'kawasaki123'; //MySQL password, default is not set, it has been set by the administrator.
$_CONFIG['mysql']['database'] = 'fire'; //MySQL database
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port, usualy 3306.
/*
Website settings
*/
$_CONFIG['hotel']['badgeurl'] = '
You must be registered for see links
' ; // Badge folder location (for the /homes and staff badges can be edited in static folder)$_CONFIG['hotel']['url'] = '
You must be registered for see links
//You do no need to enter a url here, else Does not end with a "/"$_CONFIG['hotel']['name'] = 'Habx'; // Hotel's name5
$_CONFIG['hotel']['desc'] = 'Habx er tingen!!'; //Hotel's description , not needed
$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance
$_CONFIG['hotel']['motto'] = 'Jeg er best!'; //Default motto users will register with.
$_CONFIG['hotel']['credits'] = 100000; //Default number of credits users will register with.
$_CONFIG['hotel']['pixels'] = 60000; //Default number of pixels users will register with.
$_CONFIG['hotel']['figure'] = 'lg-3201-85-110.hr-3163-42.hd-180-7.ch-3110-85-110.ha-1022-85.ea-3083-85'; //Default figure users will register with.
/*
* Hotel management - Connection variables and swfs.
*/
$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/527'; //Web_Build
$_CONFIG['hotel']['external_vars'] = '
You must be registered for see links
//URL to your external vars$_CONFIG['hotel']['external_texts'] = '
You must be registered for see links
//URL to your external texts$_CONFIG['hotel']['product_data'] = '
You must be registered for see links
//URL to your productdata$_CONFIG['hotel']['furni_data'] = '
You must be registered for see links
//URL to your furnidata$_CONFIG['hotel']['swf_folder'] = '
You must be registered for see links
//URL to your SWF folder(does not end with a '/')/*
*
* Templating management - Pick one of our default styles or make yours by following our examples!
*
*/
#RevCMS style & voting system
$_CONFIG['template']['style'] = 'site';
$_CONFIG['thehabbos']['username'] = 'ShockStyle';
$_CONFIG['retro_top']['user'] = 'ShockStyle';
/*
* Social Networking stuff - not needed in shockstyle
*/
$_CONFIG['hotel']['twitter'] = 'Habbo'; //Twitter Username
$_CONFIG['hotel']['twitterwidget_id'] = '345163210678206465'; //Twiter Widget ID
$_CONFIG['hotel']['facebook'] = 'Habbo'; //Facebook Username
?>