SHARE
TWEET

client.php

a guest May 24th, 2014 1,282 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. require_once('./data_classes/server-data.php_data_classes-core.php.php');
  4. require_once('./data_classes/server-data.php_data_classes-session.php.php');
  5.  
  6. $select = "SELECT * FROM cms_settings WHERE variable='client_ip'";
  7. $result = mysql_query($select);
  8. while($l = mysql_fetch_array($result)){
  9. $cliendfgtip = $l['value'];
  10. }
  11.  
  12. $select = "SELECT * FROM cms_settings WHERE variable='client_port'";
  13. $result = mysql_query($select);
  14.  while($l = mysql_fetch_array($result)){
  15. $clienghjport = $l['value'];
  16. }
  17.  
  18. mysql_query("UPDATE users SET auth_ticket = '', auth_ticket = '".GenerateTicket()."', ip_last = '', ip_last = '".$remote_ip."' WHERE id = '".$my_id."'") or die(mysql_error());
  19.  
  20. $ticketsql = mysql_query("SELECT * FROM users WHERE id = '".$my_id."'") or die(mysql_error());
  21. $ticketrow = mysql_fetch_assoc($ticketsql);
  22.  
  23. $client_port = mysql_fetch_assoc($client_port = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_port'"));
  24. $client_mus = mysql_fetch_assoc($client_mus = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_mus'"));
  25. $client_ip = mysql_fetch_assoc($client_ip = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_ip'"));
  26. $client_variables = mysql_fetch_assoc($client_variables = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_variables'"));
  27. $client_variables_night = mysql_fetch_assoc($client_variables_night = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_variables_night'"));
  28. $client_texts = mysql_fetch_assoc($client_texts = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_texts'"));
  29. $client_swf_path = mysql_fetch_assoc($client_swf_path = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_swf_path'"));
  30. $client_habbo_swf = mysql_fetch_assoc($client_habbo_swf = mysql_query("SELECT * FROM cms_settings WHERE variable = 'client_habbo_swf'"));
  31. $client_limit = mysql_fetch_assoc($client_limit = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_clientlimit'"));
  32. $caca="deltoro";
  33. if($caca=="delavaca"){
  34.  
  35.   echo"<script>alert(\"Edita la Configuración de tu Hotel en el Housekeeping\");</script>
  36.  <meta http-equiv=\"refresh\" content=\"0;url=".$adminpath."/index/p/login&do=secretcode\">";
  37.  
  38. } elseif($user_rank < 0 && $online_count >= $client_limit['value']){
  39.  
  40. require_once('./templates/login_subheader.php');
  41. require_once('./templates/login_header.php');
  42.  
  43. ?>
  44.  
  45. <br>
  46. <div id="intermediate">
  47. <h2><center>Límite de Clientes</center></h2>
  48. <div id="enter-hotel">
  49. <div class="open enter-btn">
  50. <a href="http://servidor2.lavvos.com" target="client" onclick="return onClientOpen(this)">Ir al Servidor 2<i></i></a><b></b>
  51. </div>
  52. </div>
  53.  
  54. <div id="info">
  55. Actualmente tenemos <b><?php echo $online_count; ?> <?php echo $shortname; ?>s </b> conectados en el Servidor 1 y el límite es de <b><?php echo $client_limit['value']; ?> Onlines.</b> Puedes intentar entrar en el <strong>Servidor 2</strong>.</div>
  56.  
  57. <?php require_once('./templates/login_footer.php'); }else{ require_once('./templates/client_subheader.php'); ?>
  58. <script type="text/javascript">
  59.     FlashExternalInterface.loginLogEnabled = true;
  60.  
  61.    FlashExternalInterface.logLoginStep("web.view.start");
  62.  
  63.    if (top == self) {
  64.         FlashHabboClient.cacheCheck();
  65.     }
  66.     var flashvars = {
  67.     "client.allow.cross.domain" : "1",
  68.         "client.notify.cross.domain" : "0",
  69.         "connection.info.host" : "localhost",
  70.         "connection.info.port" : "8486",
  71.         "site.url" : "localhost",
  72.         "url.prefix" : "http://localhost",
  73.         "client.reload.url" : "localhost/client.php",
  74.         "client.fatal.error.url" : "http://localhost/client.php",
  75.         "client.connection.failed.url" : "http://localhost/client.php",
  76.         "external.variables.txt" : "http://localhost/phx/vari.php?username=<?php echo $name; ?>",
  77.         "use.sso.ticket" : "1",
  78.         "sso.ticket" : "<?php echo $ticketrow['auth_ticket']; ?>",
  79.         "processlog.enabled" : "1",
  80.         "account_id" : "1",
  81.         "client.starting" : "Olá <?php echo $name; ?>, aguarde, está carregando.",
  82.         "flash.client.url" : "http://localhost/phx/dcr/hof_furni/",
  83.         "has.identity" : "1",
  84.         "flash.client.origin" : "popup"
  85.  
  86.  
  87.     };
  88.     var params = {
  89.         "base" : "http://localhost/phx/",
  90.         "allowScriptAccess" : "always",
  91.         "menu" : "false"              
  92.    };
  93.  
  94.    if (!(HabbletLoader.needsFlashKbWorkaround())) {
  95.       params["wmode"] = "opaque";
  96.     }
  97.  
  98.     FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/account/logout?token=<?php echo sha1($myrow['password']); ?>";
  99.  
  100.    var clientUrl = "http://localhost/phx/Habbo.swf";
  101.  
  102.      swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/424/web-gallery/flash/expressInstall.swf", flashvars, params);
  103.  
  104.    window.onbeforeunload = unloading;
  105.     function unloading() {
  106.         var clientObject;
  107.         if (navigator.appName.indexOf("Microsoft") != -1) {
  108.             clientObject = window["flash-container"];
  109.         } else {
  110.             clientObject = document["flash-container"];
  111.         }
  112.         try {
  113.             clientObject.unloading();
  114.         } catch (e) {}
  115.     }
  116. </script>
  117.  
  118.  
  119. <meta name="description" content="Lavvo Hotel: haz amig@s, únete a la diversión y date a conocer." />
  120. <meta name="keywords" content="lavvo hotel, mundo, virtual, red social, gratis, comunidad, personaje, chat, online, adolescente, roleplaying, unirse, social, grupos, forums, seguro, jugar, juegos, amigos, adolescentes, raros, furni raros, coleccionable, crear, coleccionar, conectar, furni, muebles, mascotas, diseño de salas, compartir, expresión, placas, pasar el rato, música, celebridad, visitas de famosos, celebridades, juegos en línea, juegos multijugador, multijugador masivo" />
  121.  
  122.  
  123.  
  124. <!--[if IE 8]>
  125. <link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/ie8.css" type="text/css" />
  126. <![endif]-->
  127. <!--[if lt IE 8]>
  128. <link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/ie.css" type="text/css" />
  129. <![endif]-->
  130. <!--[if lt IE 7]>
  131. <link rel="stylesheet" href="<?php echo $path; ?>/web-gallery/static/styles/ie6.css" type="text/css" />
  132. <script src="<?php echo $path; ?>/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
  133. <script type="text/javascript">
  134. try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
  135. </script>
  136.  
  137. <style type="text/css">
  138. body { behavior: url(/js/csshover.htc); }
  139. </style>
  140. <![endif]-->
  141.  
  142. <meta name="build" content="63-BUILD406 - 09.05.2011 23:04 - de" />
  143. </head>
  144.  
  145. <body id="client" class="flashclient">
  146. <div id="overlay"></div>
  147. <img src="<?php echo $path; ?>/web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />
  148.  
  149. <div id="overlay"></div>
  150. <div id="client-ui" >
  151.     <div id="flash-wrapper">
  152.     <div id="flash-container">
  153.         <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
  154. <div class="cbb clearfix">
  155.     <h2 class="title">Por favor, actualiza tu Flash Player a la última versión</h2>
  156.  
  157.     <div class="box-content">
  158.             <p>Puedes instalar y descargar Adobe Flash Player aquí: <a href="http://get.adobe.com/flashplayer/">Instala Flash player</a>. Más instrucciones para su instalación aquí: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">Más información</a></p>
  159.             <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/424/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
  160.     </div>
  161. </div>
  162.         </div>
  163.         <script type="text/javascript">
  164.             $('content').show();
  165.         </script>
  166.  
  167.         <noscript>
  168.             <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
  169.                 <p>If you are not automatically redirected, please <a href="/client">click here</a></p>
  170.             </div>
  171.         </noscript>
  172.     </div>
  173.     </div>
  174.   <div id="content" class="client-content"></div>  
  175. <?PHP
  176. $rand =rand(0,100);
  177. if($rand < 85){
  178. //PUBLI EDU
  179. ?>
  180.  
  181.  
  182. <?PHP
  183. } else {
  184. //PUBLICIDAD HECTOR
  185. ?>
  186.  
  187.  
  188. <?PHP
  189. }
  190. ?>
  191.      
  192. </div>
  193.     <div style="display: none">
  194. <div id="habboCountUpdateTarget">
  195. 1,323 Mitglieder online
  196. </div>
  197.   <script language="JavaScript" type="text/javascript">
  198.       setTimeout(function() {
  199.         HabboCounter.init(600);
  200.       }, 20000);
  201.   </script>
  202.  
  203.     </div>
  204.     <script type="text/javascript">
  205.         RightClick.init("flash-wrapper", "flash-container");
  206.         if (window.opener && window.opener != window && window.opener.location.href == "/") {
  207.             window.opener.location.replace("/me");
  208.         }
  209.         $(document.body).addClassName("js");
  210.         HabboClient.startPingListener();
  211.     </script>
  212. <div id="fb-root"></div>
  213. <script type="text/javascript">
  214.     (function() {
  215.         var e = document.createElement('script');
  216.         e.async = true;
  217.         e.src = 'https://connect.facebook.net/de_DE/all.js';
  218.         document.getElementById('fb-root').appendChild(e);
  219.     }());
  220. </script>
  221.  
  222.  
  223.         <iframe name="logframe" src="/bc/logframe?" width="0" height="0" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" style="position: absolute; top:0; left:0"></iframe>
  224.  
  225.  
  226. <iframe name="conversion-tracking" src="/conversion_tracking_frame" width="0" height="0" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" style="position: absolute; top:0; left:0"></iframe>
  227.  
  228.  
  229.  
  230. <script type="text/javascript">
  231.     HabboView.run();
  232. </script>
  233. <script type="text/javascript" src="anuncio.js"></script>
  234.  
  235. </body>
  236. </html>
  237. <?php } ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top