[SOLVED] Help with client

Status
Not open for further replies.

Stevee

Posting Freak
Mar 29, 2011
580
35
Hi,

MY client loads to 100% then it ends up freezing then redirecting to /me

my SWFS work, my emulators an R63B one, my configuration is right.

Screenshots of my config:

This is my client.php

PHP:
<?php

require_once('./data_classes/server-data.php_data_classes-core.php.php');
if($_SESSION['registernew'] == true){
require_once 'reg-beta.php';
exit;
}
if(!isset($_SESSION['username']))
{
    header("Location: ".$path."/login_popup");
    exit();
}
mysql_query("UPDATE users SET auth_ticket = '', auth_ticket = '".GenerateTicket()."', ip_last = '', ip_last = '".$remote_ip."' WHERE id = '".$my_id."'") or die(mysql_error());

$ticketsql = mysql_query("SELECT * FROM users WHERE id = '".$my_id."'") or die(mysql_error());
$ticketrow = mysql_fetch_assoc($ticketsql);

$client_port = mysql_fetch_assoc($client_port = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_port'"));
$client_mus = mysql_fetch_assoc($client_mus = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_mus'"));
$client_ip = mysql_fetch_assoc($client_ip = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_ip'"));
$client_variables = mysql_fetch_assoc($client_variables = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_variables'"));
$client_variables_night = mysql_fetch_assoc($client_variables_night = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_variables_night'"));
$client_texts = mysql_fetch_assoc($client_texts = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_texts'"));
$client_swf_path = mysql_fetch_assoc($client_swf_path = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_swf_path'"));
$client_habbo_swf = mysql_fetch_assoc($client_habbo_swf = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_habbo_swf'"));
$client_limit = mysql_fetch_assoc($client_limit = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_clientlimit'"));


if($user_rank > 4 && $_SESSION['acp'] == 0){

    echo"<script>alert(\"Bitte log dich ins Housekeeping ein, damit du ins Hotel einchecken kannst.\");</script>
    <meta http-equiv=\"refresh\" content=\"0;url=".$adminpath."/index/p/login&do=secretcode\">";

} elseif($user_rank < 2 && $online_count >= $client_limit['value']){

require_once('./templates/login_subheader.php');
require_once('./templates/login_header.php');

?>




<br>
<div id="intermediate" >
<h2><center>Client Limit</center></h2>
<div id="enter-hotel">
<div class="open enter-btn">
<a href="<?php echo $path; ?>/me" target="me" onclick="return onClientOpen(this)">Login<i></i></a><b></b>
</div>
</div>

<div id="info">
There are currently <b><?php echo $online_count; ?></b> Online!<br>Client Limit: <b><?php echo $client_limit['value']; ?></b><br><br>Once <b><?php echo $online_count + 1 - $client_limit['value']; ?></b> Members have gone offline, you can login!
</div>

<div id="enter-mypage">
<a href="<?php echo $path; ?>/client" class="new-button green-button" style="left: -250px;"><b>Updates &raquo;</b><i></i></a>
<a href="<?php echo $path; ?>" class="new-button red-button" style="left: -250px;"><b>&laquo; Back</b><i></i></a>
</div>
<?php require_once('./templates/login_footer.php'); }else{ require_once('./templates/client_subheader.php'); ?>




<link rel="stylesheet" href="<?php echo $path; ?>/habblet/client/C-Loader/css/habboflashclient_extra.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $path; ?>/habblet/client/C-Loader/css/habboflashclient.css" type="text/css" />


<script src="<?php echo $path; ?>/habblet/client/C-Loader/js/Loader.js" type="text/javascript"></script>
<script src="<?php echo $path; ?>/habblet/client/C-Loader/js/habboflashclient.js" type="text/javascript"></script>

<script type="text/javascript">
function DoResize()
{
    var nHeight;
    if (typeof window.innerHeight == 'undefined')
    {
        nHeight = document.body.clientHeight -40;
    }
    else
    {
        nHeight = window.innerHeight -40;
    }
   
    document.getElementById('flash').style.height = nHeight+'px';
}
    var flashvars = {
    "client.allow.cross.domain" : "1",
            "client.notify.cross.domain" : "0",
            "connection.info.host" : "attackprotect.com",
            "connection.info.port" : "30185",
            "site.url" : "<?php echo $path; ?>",
            "url.prefix" : "<?php echo $path; ?>",
            "client.reload.url" : "<?php echo $path; ?>/client",
            "client.fatal.error.url" : "<?php echo $path; ?>/me",
            "client.connection.failed.url" : "<?php echo $path; ?>/me",
            "external.variables.txt" : "<?php echo $path; ?>/b200/external_variables.txt",
            "external.texts.txt" : "<?php echo $path; ?>/b200/external_flash_texts.txt",
            "productdata.load.url" : "<?php echo $path; ?>/b200/productdata.txt",
            "furnidata.load.url" : "<?php echo $path; ?>/b200/furnidata.txt",
            "use.sso.ticket" : "1",
            "sso.ticket" : "<?php echo $ticketrow['auth_ticket']; ?>",
            "processlog.enabled" : "1",
            "account_id" : "1",
            "client.starting" : " is loading",
            "flash.client.url" : "<?php echo $path; ?>/client",
            "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
            "has.identity" : "1",
            "flash.client.origin" : "popup"
    };
    var params = {
        "base" : "<?php echo $path; ?>/b200/",
        "allowScriptAccess" : "always",
        "menu" : "false",   
        "wmode" : "opaque"       
    };


    FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/account/logout?token=<?php echo sha1($myrow['password']); ?>";

    var clientUrl = "./b200/habbo.swf";

    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "hhnewloader/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) {}
    }
        //window.onresize = DoResize;
    window.onload = DoResize;
</script>





 
  </head> 
<meta name="build" content="63-BUILD406 - 09.05.2011 23:04 - de" />
</head>

<body id="client" class="flashclient">

<script type="text/javascript">
jjLoader.init('client', 6, '<?php echo $path; ?>/web-gallery/v2/images/habbo.png', '<?php echo $path; ?>/habblet/client/C-Loader/images/view.png');
</script>
<div id="bar">     
       
    <center><img src="<?php echo $path; ?>/habblet/client/C-Loader/images/progress_bubbles.gif" style="margin-top: 15px;"></center>
</div>


<div id="overlay"></div>
<img src="<?php echo $path; ?>/habblet/client/C-Loader/images/page_loader.gif" style="position:absolute; margin: -1500px;" />

<div id="overlay"></div>
<div id="client-ui" style="height:95.0%">             
      <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 get the latest Adobe Flash Player Version.</h2>

    <div class="box-content">
            <p>Here you can download and install the Adobe Flash Player:  <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More information and 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/63_1dc60c6d6ea6e089c6893ab4e0541ee0/317/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 id="content" class="client-content"></div> 
   
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> 
<script src="<?php echo $path; ?>/habblet/client/C-Loader/js/jquery.floating_popup.1.4.min.js"></script>
<script type="text/javascript">   
    var counter = 0;
     
    function showtimer(){
          counter++;
      if(counter == 50){
        $('#bar').fadeOut('slow').load('habblet/client/counter[BETA].php').fadeIn("slow");
        counter = 0;
      }
      setTimeout('showtimer()', 300);   
    }
</script>   
<script type="text/javascript" data-cfasync="false">
    $(document).ready(function() {   
      showtimer();
    });
 
</script> 

  </body> 
</html>

  <?php } ?>


thanks,
steve
 

LeonX

New Member
Oct 11, 2013
13
1
is the hotel public or private? if its private then go to config.php and where it says ip of vps/dedi whatever put 127.0.0.1 instead of localhost
 
Status
Not open for further replies.

Users who are viewing this thread

Top