Client doesn´t work properly.

rhandy

Member
Jun 25, 2011
42
0
Hi everyone,

Today I have tried to install my hotel but amazingly enough my client doesn´t work..
I´ve tried to install my own SWFS etc. And it worked.. also tried to host on my local IP but doesn´t work ether..
The client will load till 100% and then it will reconnect. Also my Emulator doesn't show any activity of getting in the client ( get connected ).. Not even a single try..
Can anyone help me to fix this, because I can´t find a solution on here nor any other sites ( even google didn´t helped me. ).

I hope anyone can help me and find a solution for it.


- Rhandy
 

rhandy

Member
Jun 25, 2011
42
0
Can you post a screen shot?

Not an screen because that would be too long but here is the client script.


PHP:
<?php
$index = true;
include('core/global.php');
 
if(!isset($_SESSION['username'])){
    $trytohack = true;
    require_once '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"
   
<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 = "http://141.105.6.157/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 content..";
        }
 
        else if (jjLoader.progress > 99 && jjLoader.progress < 101)
        {
            text = "Welcome to <?php echo $sitename; ?>, Go and find some friends!";
        }
   
        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" : "141.105.6.157",
            "connection.info.port" : "30000",
            "site.url" : "http://141.105.6.157",
            "url.prefix" : "http://141.105.6.157",
            "client.reload.url" : "http://141.105.6.157/reload",
            "client.fatal.error.url" : "http://141.105.6.157/client.php",
            "client.connection.failed.url" : "141.105.6.157/failed_connection.php",
            "external.variables.txt" : "http://141.105.6.157/r63/external_variables.txt",
            "use.sso.ticket" : "1",
            "sso.ticket" : "ST-134194-9250159312-FlagCMS-1828093446-2",
            "account_id" : "<?php echo user(id); ?>",
            "processlog.enabled" : "1",
            "client.starting" : "<?php echo $sitename; ?> is starting up..",
            "flash.client.url" : "http://141.105.6.157/r63/",
            "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
            "has.identity" : "1",
            "flash.client.origin" : "popup",
            "token" : "ST-134194-9250159312-FlagCMS-1828093446-2",
            "logout.disconnect.url" : "http://141.105.6.157/disconnect",
            "logout.url" : "http://141.105.6.157/logout",
    };
    var params = {
            "base" : "http://141.105.6.157/r63/",
            "allowScriptAccess" : "always",
            "menu" : "false",
            "bgcolor" : "#000",
            "wmode" : "transparent"
    };
 
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
        params["wmode"] = "opaque";
    }
 
    FlashExternalInterface.signoutUrl = "http://141.105.6.157/logout";
 
    var clientUrl = "http://141.105.6.157/r63/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; ?>', '<?php echo $site; ?>/Public/client/Images/background.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>
 

rhandy

Member
Jun 25, 2011
42
0
Edit your external_variables so the IP isn't '127.0.0.1' but the domain of the hotel.

I tried on your advice, but without any result.


- Rhandy
----------------------------------------------------------------------------------------------------------------------------------

Okay, found something weird... A friend can get in the server, but I can't?

He got connected in my Emu but when I try, it won't?

Whats wrong..


- Rhandy
 

Users who are viewing this thread

Top