[Help] Client Not Working [Help]

dukestar

Member
Nov 26, 2011
86
4
My client loads to 100 % and then it disconnects -.- idk why this happens. if someone could please help that would be great.
 

dukestar

Member
Nov 26, 2011
86
4
Yes
the emu is on

and on my EMU it says when i try to get on:

>> Connection [0] from [5.224.254.14}
>> Connection Dropped [0] from [5.224.254.14]
>> Connection [0] from [5.224.254.14]
Login Error: User account not found - make sure the users ip_last matches their current ip {5.224.254.14}
>> Connection Dropped [0] from [5.224.254.14]
 

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
Put this on the top of your client.php page

PHP:
<?php dbquery("UPDATE users SET ip_last = '" . $_SERVER['REMOTE_ADDR'] . "' WHERE username = '" . USER_NAME . "'");  ?>
 

dukestar

Member
Nov 26, 2011
86
4
Where abouts?

this is my Client.PHP

Code:
<?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"
        "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 = "http://5.224.254.14/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" : "5.224.254.14",
            "connection.info.port" : "30000",
            "site.url" : "http://5.224.254.14",
            "url.prefix" : "http://5.224.254.14",
            "client.reload.url" : "http://5.224.254.14/reload",
            "client.fatal.error.url" : "http://5.224.254.14/fatal_error",
            "client.connection.failed.url" : "5.224.254.14/failed_connection",
            "external.variables.txt" : "http://64.31.26.206/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://64.31.26.206/r63/",
            "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
            "has.identity" : "1",
            "flash.client.origin" : "popup",
            "token" : "ST-134194-9250159312-FlagCMS-1828093446-2",
            "logout.disconnect.url" : "http://5.224.254.14/disconnect",
            "logout.url" : "http://5.224.254.14/logout",
    };
    var params = {
            "base" : "http://64.31.26.206/r63/",
            "allowScriptAccess" : "always",
            "menu" : "false",
            "bgcolor" : "#000",
            "wmode" : "transparent"
    };
   
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
        params["wmode"] = "opaque";
    }
   
    FlashExternalInterface.signoutUrl = "http://5.224.254.14/logout";
 
    var clientUrl = "http://64.31.26.206/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; ?>/Public/client/Images/logo.gif', '<?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>
 

Nailezned

Member
May 24, 2012
63
9
Where abouts?

this is my Client.PHP

Code:
<?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"
        "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 = "http://5.224.254.14/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" : "5.224.254.14",
            "connection.info.port" : "30000",
            "site.url" : "http://5.224.254.14",
            "url.prefix" : "http://5.224.254.14",
            "client.reload.url" : "http://5.224.254.14/reload",
            "client.fatal.error.url" : "http://5.224.254.14/fatal_error",
            "client.connection.failed.url" : "5.224.254.14/failed_connection",
            "external.variables.txt" : "http://64.31.26.206/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://64.31.26.206/r63/",
            "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
            "has.identity" : "1",
            "flash.client.origin" : "popup",
            "token" : "ST-134194-9250159312-FlagCMS-1828093446-2",
            "logout.disconnect.url" : "http://5.224.254.14/disconnect",
            "logout.url" : "http://5.224.254.14/logout",
    };
    var params = {
            "base" : "http://64.31.26.206/r63/",
            "allowScriptAccess" : "always",
            "menu" : "false",
            "bgcolor" : "#000",
            "wmode" : "transparent"
    };
 
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
        params["wmode"] = "opaque";
    }
 
    FlashExternalInterface.signoutUrl = "http://5.224.254.14/logout";
 
    var clientUrl = "http://64.31.26.206/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; ?>/Public/client/Images/logo.gif', '<?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>

I used to have this problem. I'm not sure if this will resolve yours but try changing 'pconnect' with 'connect' in your config.php
 

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
Just put that line of code above the <?php at the top of the page. Save it and restart emu. See what happens :)
 

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
It probably would but that code is the most secure and easiest way to do it (yet he failed at it :p)
 

Users who are viewing this thread

Top