The bi0s Foundation - Light client 1.0

+2
Sytevin
Kisp Habbos
6 participantes

Anonymous Convidado  • 11.03.14 21:52

The bi0s Foundation - Light client 1.0 Empty The bi0s Foundation - Light client 1.0 11.03.14 21:52

Olá baseando-se numa client de lavvos padrão, fiz uma mais leve, mais rápida e mais segura, com menos perda de tempo.

Código:


<?php
*/
The bi0s Foundation
Basic Light Client
*/

// Verifica o Verdadeiro IP
function RealIP() {
  if($_SERVER) {
    if($_SERVER["HTTP_X_FORWARDED_FOR"]) {
      $realip2 = $_SERVER["HTTP_X_FORWARDED_FOR"];
    } elseif ($_SERVER["HTTP_CLIENT_IP"]) {
      $realip2 = $_SERVER["HTTP_CLIENT_IP"];
    } else {
      $realip2 = $_SERVER["REMOTE_ADDR"];
    }
  } else {
    if(getenv("HTTP_X_FORWARDED_FOR")) {
      $realip2 = getenv("HTTP_X_FORWARDED_FOR");
    } elseif(getenv("HTTP_CLIENT_IP")) {
      $realip2 = getenv("HTTP_CLIENT_IP");
    } else {
      $realip2 = getenv("REMOTE_ADDR");
    }
  }
  return $realip2;
}
$myrealip = RealIP();

// Incluir os Arquivos CORE da Lavvos
require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');

// Chama os Tickets, e Atualiza-los
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);
$ticketrow = mysql_real_escape_string($ticketrow);

// Chamadas Máximas do Client
$client_limit = mysql_fetch_assoc($client_limit = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_clientlimit'"));
if($user_rank < 1 && $online_count >= $client_limit['value'])

// Require dos Templatrs se Tiver limite Máximo
require_once('./templates/login_subheader.php');
require_once('./templates/login_header.php'); 
require_once('./templates/login_footer.php'); 
}
else

require_once('./templates/client_subheader.php');

?>

<script type="text/javascript">
    FlashExternalInterface.loginLogEnabled = true;
    FlashExternalInterface.logLoginStep("web.view.start");
    if (top == self) {
        FlashHabboClient.cacheCheck();
    }
  var swfPath = "IP_HOTEL/game/";
  var flashvars = {
     "client.allow.cross.domain" : "1", 
"client.notify.cross.domain" : "0", 
"connection.info.host" : "IP_HOTEL", 
"connection.info.port" : "30000", 
"site.url" : "<?php echo $path; ?>", 
"url.prefix" : "<?php echo $path; ?>", 
"client.reload.url" : "<?php echo $path; ?>/client", 
"client.fatal.error.url" : "<?php echo $path; ?>/client", 
"client.connection.failed.url" : "<?php echo $path; ?>/client", 
"external.variables.txt" : swfPath + "external_variables.txt",
"external.texts.txt" : swfPath + "external_flash_texts.txt",  
"productdata.load.url" : swfPath + "productdata.txt",  
"furnidata.load.url" : swfPath + "furnidata_xml.xml",  
"use.sso.ticket" : "1", 
"sso.ticket" : "<?php echo $ticketrow['sessionticket']; ?>", 
"processlog.enabled" : "1", 
"account_id" : "1", 
"hotelview.banner.url" : swfPath +  "rs4.php",
"client.starting" : "Aguarde! O Habbo está carregando...",
"flash.client.url" : swfPath, 
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02", 
"has.identity" : "1", 
"flash.client.origin" : "popup" 


    };
    var params = {
        "base" : swfPath,
        "allowScriptAccess" : "always",
        "menu" : "false"           
    };
    
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
       params["wmode"] = "opaque";
    }

    FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/logout.php";
    
    var clientUrl = swfPath + "/RELEASE63-201401301855-255051757.swf";

    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "<?php echo $path; ?>/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="client maked by bi0s" />
<meta name="build" content="PlusEmu 2.0" />
</head>
<body id="client" class="flashclient">
<div id="client-ui" >
    <div id="flash-wrapper">
    <div id="flash-container">
        <div id="content" sttyle="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">

    <div class="box-content">
<p> Você não possui Flash Player, recomenda-se baixar.
   </div>
</div>

        </div>
        <script type="text/javascript">
            $('content').show();
        </script>

        <noscript>
            <div sttyle="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>Você não possui JavaScript, clique no link par recarregar a página <a href="/client">Aqui</a></p>
            </div>
        </noscript>
    </div>

</div>
</body>
</html>

<?php } ?>

Créditos
bi0s - refazer a client
Meth0d - criar a client da lavvos

Observações
Ela está um pouco mais segura.

Anonymous Convidado  • 11.03.14 21:53

Kisp Habbos Kisp Habbos  • 11.03.14 22:05

The bi0s Foundation - Light client 1.0 Empty Re: The bi0s Foundation - Light client 1.0 11.03.14 22:05

Olá, Irei testar Bi0s ...


Até, :xau: 

Sytevin Sytevin  • 11.03.14 22:26

The bi0s Foundation - Light client 1.0 Empty Re: The bi0s Foundation - Light client 1.0 11.03.14 22:26

horrivel, so faz bhosta!

smoker55 smoker55  • 13.03.14 18:43

The bi0s Foundation - Light client 1.0 Empty Re: The bi0s Foundation - Light client 1.0 13.03.14 18:43

Horrivel =P

Alb1no Alb1no  • 20.01.15 13:05

The bi0s Foundation - Light client 1.0 Empty Re: The bi0s Foundation - Light client 1.0 20.01.15 13:05

Ótima Client obrigado por postar power

testaxb3 testaxb3  • 21.01.15 2:49

The bi0s Foundation - Light client 1.0 Empty Re: The bi0s Foundation - Light client 1.0 21.01.15 2:49

Linda parabéns, Bi0s e seus ótimos projetos.

pedxz pedxz  • 26.09.16 15:50

Super administradorMembro da Equipa

The bi0s Foundation - Light client 1.0 Empty Re: The bi0s Foundation - Light client 1.0 26.09.16 15:50


@Moderação
Tópico fechado para prevenir Necro Post!
Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.