Client Not Connecting

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Usually I am able to solve these problems but my cms has gotten a little messed up since I started editing... My Client was loading and disconnecting when I went to work and I figured i would fix it another time, here is my client.php:

Code:
<?php
   
    Header("Location: " . WWW . "/client");

?>

Page-client.php:

Code:
<?php
$getSettings = dbquery("SELECT * FROM users WHERE username = '" . USER_NAME . "'");
$userAccount = mysql_fetch_assoc($getSettings);
?>
<script type="text/javascript">
    FlashExternalInterface.loginLogEnabled = true;
   
    FlashExternalInterface.logLoginStep("web.view.start");
   
    if (top == self) {
       
        FlashHabboClient.cacheCheck();
    }

    var habboReqPath = "%www%";
   
    var flashvars = {
            "client.allow.cross.domain" : "1",
            "client.notify.cross.domain" : "1",
            "connection.info.host" : "PROXY",
        "connection.info.port" : "PROXY PORT",
            "site.url" : "%site_url%",
            "url.prefix" : "%site_url%",
            "client.reload.url" : "%www%/client",
            "client.fatal.error.url" : "%www%/client",
            "client.connection.failed.url" : "%www%/client",
            "external.variables.txt" : "%external_variables_txt%",
            "external.texts.txt" : "%external_texts_txt%",
            "productdata.load.url" : "%productdata_load_url%",
            "furnidata.load.url" : "%furnidata_load_url%",
            "use.sso.ticket" : "1",
            "sso.ticket" : "%sso_ticket%",
            "processlog.enabled" : "1",
            "account_id" : "19927505",
            "client.starting" : "%client_starting%",
            "flash.client.url" : "%www%/client",
            "user.hash" : "<?php echo sha1(USER_ID); ?>",
            "flash.client.origin" : "popup",
                                                                                                                                                                               
    };

    var params = {
        "base" : "%swf_base_dir%",
        "allowScriptAccess" : "always",
        "menu" : "false"               
    };
   
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
        params["wmode"] = "opaque";
    }
   
   
    var clientSWF = "LINK/r63/habbo.swf";
   
   
   
   
    var clientUrl = "/flashplayer/expressinstall.swf";
    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "%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>



<meta name="description" content="Check into the world’s largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" />
<meta name="keywords" content="Aeon hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />




<!--[if IE 8]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie6.css" type="text/css" />
<script src="%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]-->
<link rel="stylesheet" href="/web-gallery/flash.css" type="text/css" />
<link rel="stylesheet" href="buttons.css" type="text/css" />
</head>

<div id="overlay"></div>
<div id="embed-topbar">
<div id="fullscreen-button">
<font size="5"><center><p><b>&nbsp;&nbsp;Hotel Quick Links Bar</b></p></center></font>


</div>
    <div id="navi">
            <a target="_blank" href="/values.php">Rare Values &raquo</font></a>
                <span>|</span>
               
            <a target="_blank" href="/vault.php">Vault &raquo</font></a>
           
               <span>|</span>
            <a target="_blank" href="/jobs.php">Trial Apps &raquo</font></a>
          
          
 
             

    </div>

<div id="right-buttons">
<a target="_blank" href="/development.php " class="new-button" target=""><b>Ranks &raquo</b><i></i></a>
<a target="_blank" href="/vip " class="new-button" target=""><b>Shop &raquo</b><i></i></a>
<a target="_blank" href="/articles " class="new-button" target=""><b>News &raquo</b><i></i></a>
<a target="_blank" href="/me " class="new-button" target=""><b>%habboName% &raquo</b><i></i></a>



</div>
</div>
<script type="text/javascript">
    Embed.decorateNaviLinks();
    Embed.decorateLogoLink();
</script>
<div id="overlay"></div>
<div id="client-ui" class="embed">

    <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">
    </div>
</div>
<body id="client" class="flashclient">

<div id="overlay"></div>

<img src="%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="%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 id="overlay"></div>

    <div id="content" class="client-content"></div>           
</div>
    <div style="display: none">
   

<div id="habboCountUpdateTarget">
%hotel_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>

</body>
</html>

What its doing:

Instead of going to /client it goes to /WWW/client (Its not doing the php) I have no idea why ;l
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
No dont replace with that, Just use the original url
That would work, just being formal about it instead of changing URL's if the site moves.

Unless %site_url% and %www% aren't defined, then you have a bigger problem.
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
My guess is %www% isnt defined, so it's taking it as a folder on the host, and because % isnt recognized, it just ignores those, thus www/client, fixes listed above should work.
 

Brad

Well-Known Member
Jun 5, 2012
2,319
992
His problem isnt the SWF, said he's getting linked to /www/client and not /client.
Thats most likely www/client is his D/c url. Doesn't mean it's his emulator or swf could be both, if the client is running for long enough without connection it would just d.c you anyway.
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
Thats most likely www/client is his D/c url. Doesn't mean it's his emulator or swf could be both, if the client is running for long enough without connection it would just d.c you anyway.
Because www/client is also his client url.

Code:
"flash.client.url" : "%www%/client",

May be wrong, just a educated guess, havn't actually worked on a retro in a while.
 

GetRekt

Member
Aug 1, 2014
75
5
I had this problem here change your .htaccess with..
RewriteRule ^client(|/)$ /newclient.php


And client.php with...

<?php
/*
|
. .|---.,---.,---.
| || ||---'| UberCMS 2.0
`---'`---'`---'`
LULZ
Coded originally by Meth0d (2010-2011)
Continued by Jonty (2011-now)

Build 2.0.0 SS, Public
*/

// Please edit newclient.php, moved it and edited .htaccess rule.
// - Jonty

Header("Location: " . WWW . "/client");

?>
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Thanks for all your help but it was working and then it just screws up , when I left for work it was loading client and disconnecting and I was in a hurry to get to work so I left it , came back and it was like that. IT WAS WORKING
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
I had this problem here change your .htaccess with..
RewriteRule ^client(|/)$ /newclient.php


And client.php with...

<?php
/*
|
. .|---.,---.,---.
| || ||---'| UberCMS 2.0
`---'`---'`---'`
LULZ
Coded originally by Meth0d (2010-2011)
Continued by Jonty (2011-now)

Build 2.0.0 SS, Public
*/

// Please edit newclient.php, moved it and edited .htaccess rule.
// - Jonty

Header("Location: " . WWW . "/client");

?>
You asked me to do what was already there lol.. Remove the comments and ur left with what i had in the first place


Edit: If I put

Header("Location: " ");

I get this error:
Parse error: syntax error, unexpected 'http' (T_STRING) in C:\xampp\htdocs\client.php on line 3
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
You asked me to do what was already there lol.. Remove the comments and ur left with what i had in the first place


Edit: If I put

Header("Location: " ");

I get this error:
Parse error: syntax error, unexpected 'http' (T_STRING) in C:\xampp\htdocs\client.php on line 3
hmmf, try %site_info%/client

Did you try te other fixes provided by me and Hey?
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
What CMS/Emu are you using?

A quick google search turned this up, not sure if itle work or not.
Code:
UPDATE server_settings SET enable_securesessions = '0';
UPDATE server_settings SET enable_antiddos = '1';
UPDATE server_settings SET ip_lastforbans = '1';
 

Users who are viewing this thread

Top