*HELP* Client is reloading over and over,

Tommy594

Member
Mar 11, 2012
38
1
My Client Is Reloading Every time i try enter my hotel, everything is up and running, but its just the client part that is a bit tricky, i have no idea how to fix it sisnce it just reloads this:

Example:

it reloads that every time it goes to 100%, please help me
 

lepos

thinking about you. yes you
Dec 11, 2011
2,022
685
Find DeltaCMS v1.2 download it put it in htdocs or wwwroot. DeltaCMS V1.2 is on RZ & then replace the client with this:

Code:
<?php
$index = true;
include('core/global.php');
 
if(!isset($_SESSION['username'])){ header("Location: $site/index.php"); exit; }
 
$ticket = $core->SSO();
if(user(account_id) !== '-'){
mysql_query("UPDATE users SET auth_ticket = '".$ticket."', ip_last = '".$remoteip."', account_id = '".user(id)."' WHERE id = '".user(id)."'");
} else {
mysql_query("UPDATE users SET auth_ticket = '".$ticket."', ip_last = '".$remoteip."' WHERE id = '".user(id)."'");
}
?>
<!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 $sitename." Hotel: Client"; ?></title>
 
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $WebBuild; ?>/web-gallery/static/styles/common.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $site; ?>/Public/client/Style/habboflashclient.css" type="text/css" />
 
<script src="<?php echo $site; ?>/Public/client/JS/habbo.js" type="text/javascript"></script>
 
<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "<?php echo X($_SESSION['username']); ?>";
var habboReqPath = "<?php echo $site; ?>";
var habboStaticFilePath = "http://images.habbo.com/habboweb/<?php echo $WebBuild; ?>/web-gallery";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "<?php echo $site; ?>/client";
window.name = "ClientWndw";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
</script>
 
 
<script src="<?php echo $site; ?>/Public/client/JS/habboflashclient.js" type="text/javascript"></script>
 
<script src="<?php echo $site; ?>/Public/client/JS/identity.js" type="text/javascript"></script>
 
<script type="text/javascript">
var jjLoader = {
'maxStep': 0,
'currentStep': 1,
'isInit': false,
'interval': null,
'init': function(_wrapperId, _maxStep, _imageUrl, _backgroundUrl){
jjLoader.maxStep = _maxStep;
 
var wrapper = document.getElementById(_wrapperId);
 
wrapper.innerHTML += '<div id="wrapperLoader" style="background: #000000 url('+_backgroundUrl+') center no-repeat; position: absolute; z-index: 9999999; width: 100%; height: 100%;">'+
'<div style="width: 240px; height: 125px; padding: 5px; border-radius: 10px; background: rgba(0, 0, 0, 0.7) url('+_imageUrl+') center 15px no-repeat; position: absolute; left: 50%; top: 50%; margin-top: -65px; margin-left: -125px;">'+
'<div id="wrapperLoaderText" style="margin-top: 60px; margin-bottom: 10px; text-align: center; font-family: Arial; color: #FFFFFF; font-size: 10px;">Bussy with booting up your hotel! 0%</div>'+
'<div style="border-radius: 1px; border: 1px solid #FFFFFF; background-color: rgba(0, 0, 0, 0.6); padding: 1px; margin-left: 20px; width: 200px; height: 17px">'+
'<div id="wrapperLoaderProgress" style="background-color: #8CA1AD; height: 17px; width: 0;">'+
'<div style="background-color: #BACAD3; height: 9px; width: 100%;">'+
'</div></div></div></div>';
 
jjLoader.interval = window.setInterval(jjLoader.IntervalUpdate, 10);
 
jjLoader.isInit = true;
return true;
},
'progressNow': 0,
'progress': 0,
'IntervalUpdate': function(){
if (jjLoader.progressNow >= jjLoader.progress || jjLoader.progressNow >= 100)
{
return;
}
 
jjLoader.progressNow += 2;
 
var wrapperLoaderProgress = document.getElementById('wrapperLoaderProgress');
wrapperLoaderProgress.style.width = jjLoader.progressNow +'%';
},
'doUpdate': function(_text){
if (!jjLoader.isInit)
{
return false;
}
 
jjLoader.currentStep++;
jjLoader.progress = Math.round((100 / jjLoader.maxStep) *jjLoader.currentStep);
 
if (jjLoader.progress > 100)
{
jjLoader.progress = 100;
}
 
jjLoader.updateText(_text);
 
return true;
},
'updateText': function(_text){
if (!jjLoader.isInit)
{
return false;
}
 
var text = '';
if (jjLoader.progress > 0 && jjLoader.progress < 100)
{
text = "<?php echo $sitename; ?> is loading..";
}
 
else if (jjLoader.progress > 99 && jjLoader.progress < 101)
{
text = "Welcome to <?php echo $sitename; ?>!";
}
 
var wrapperLoaderText = document.getElementById('wrapperLoaderText');
wrapperLoaderText.innerHTML = text+' '+jjLoader.progress+'%';
 
return true;
},
'finish': function(){
if (!jjLoader.isInit)
{
return false;
}
 
var wrapperLoader = document.getElementById('wrapperLoader');
wrapperLoader.parentNode.removeChild(wrapperLoader);
 
window.clearInterval(jjLoader.interval);
 
return true;
}
};
</script>
 
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = false;
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" : "localhost",
"connection.info.port" : "30000",
"site.url" : "<?php echo $site; ?>",
"url.prefix" : "<?php echo $site; ?>",
"client.reload.url" : "<?php echo $site; ?>/client",
"client.fatal.error.url" : "<?php echo $site; ?>/client",
"client.connection.failed.url" : "<?php echo $site; ?>/client",
"external.variables.txt" : "http://localhost/r62/external_variables.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticket; ?>",
"account_id" : "<?php echo user(id); ?>",
"processlog.enabled" : "1",
"client.starting" : "<?php echo $sitename; ?> is starting up..",
"flash.client.url" : "http://localhost/r62/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "1",
"flash.client.origin" : "popup",
"token" : "<?php echo $ticket ?>",
"logout.disconnect.url" : "<?php echo $site; ?>/client",
"logout.url" : "<?php echo $site; ?>/me",
};
var params = {
"base" : "http://localhost/r62/",
"allowScriptAccess" : "always",
"menu" : "false",
"bgcolor" : "#000",
"wmode" : "transparent"
};
 
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
 
FlashExternalInterface.signoutUrl = "<?php echo $site; ?>/logout";
 
var clientUrl = "http://localhost/r62/Habbo.swf";
 
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/<?php echo $WebBuild; ?>/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>
 
<!--[if IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $WebBuild; ?>/web-gallery/static/styles/ie8.css" type="text/css" />
<![endif]-->
 
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $WebBuild; ?>/web-gallery/static/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $WebBuild; ?>/web-gallery/static/styles/ie6.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/<?php echo $WebBuild; ?>/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]-->
 
</head>
 
<body id="client" class="flashclient" style="background-color: #000;">
 
<script type="text/javascript">
jjLoader.init('client', 6, '<?php echo $site; ?>/style/Habbo/CSS/Images/logo.gif', 'http://habbo.hs.llnwd.net/c_images/hotel_view_images_hq/hotelview_xmas10_000.png');
</script>
 
<div id="overlay"></div>
<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 install Adobe Flash Player.</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/<?php echo $WebBuild; ?>/web-gallery/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="<?php echo $site; ?>/client">click here</a></p>
</div>
</noscript>
</div>
 
</div>
<div id="content" class="client-content"></div>
</div>
 
</body>
</html>

Then edit it to your links. If it doesn't work after that, then it's your swfs.
I had the same problem.
 

lepos

thinking about you. yes you
Dec 11, 2011
2,022
685
Then the problem is your swfs. I had to change aswell.
I forgot where I got mine from.
or you're Database isn't connecting to the emulator, that was my secound problem.
 

Tommy594

Member
Mar 11, 2012
38
1
It Says Connection Dropped On My Emu ?
20tgpdj.png
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
You could try to have a new fresh install of your database. If this hotel is not yet publicized, no harm could be made. And make surethat the ip_last of the account you're trying to load matches the IP you are using.
 

iHarrison

Member
Mar 11, 2012
321
131
Seems like the CMS isn't updating the last_ip for your user when you load the client

I know that there is a line of code that does it but try and put this within the <?php and ?> tags:

Code:
mysql_query("UPDATE users SET ip_last = '" . $_SERVER['REMOTE_ADDR'] . "' WHERE username = '" .user(id).'");

the code for that cms is horrible.
 

Users who are viewing this thread

Top