Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

page-client.tpl

By: a guest on Dec 14th, 2011  |  syntax: PHP  |  size: 5.13 KB  |  views: 385  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. $rand1 = rand(100000, 999999);
  3. $rand2 = rand(10000, 99999);
  4. $rand3 = rand(10000, 99999);
  5. $rand4 = rand(10000, 99999);
  6. $rand5 = rand(10000, 99999);
  7. $rand6 = rand(1, 9);
  8.  
  9. $ticket = "ST-".$rand1."-".$rand2.$rand3."-".$rand4.$rand5."-otaku-".$rand6;
  10. $username = $_SESSION['UBER_USER_N'];
  11.  
  12. $query = mysql_query("UPDATE users SET auth_ticket = '$ticket' WHERE username = '$username'");
  13. $query = mysql_query("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '$username'");
  14.  
  15. ?>
  16.  
  17. <body id="client" class="flashclient">  
  18.  
  19. <script type="text/javascript">  
  20. var habboDefaultClientPopupUrl = "%www%/client";
  21. </script>  
  22.  
  23.  
  24.  
  25. <noscript>  
  26.     <meta http-equiv="refresh" content="0;url=%www%/client/nojs" />  
  27. </noscript>
  28.  
  29. <script type="text/javascript">  
  30.     FlashExternalInterface.loginLogEnabled = true;
  31.      
  32.     FlashExternalInterface.logLoginStep("web.view.start");
  33.      
  34.     if (top == self) {
  35.         FlashHabboClient.cacheCheck();
  36.     }
  37.     var flashvars = {
  38.             "client.allow.cross.domain" : "1",  
  39.             "client.notify.cross.domain" : "0",  
  40.             "connection.info.host" : "127.0.0.1",  
  41.             "connection.info.port" : "30000",  
  42.             "site.url" : "%www%",  
  43.             "url.prefix" : "%www%",  
  44.             "client.reload.url" : "%www%/account/reauthenticate?page=/flash_client",  
  45.             "client.fatal.error.url" : "%www%/flash_client_error",
  46.             "client.connection.failed.url" : "%www%/client_connection_failed",
  47.             "external.hash" : "",  
  48.             "external.variables.txt" : "http://127.0.0.1/r63/external_variables.txt",
  49.             "external.texts.txt" : "http://127.0.0.1/r63/external_flash_texts.txt",
  50.             "use.sso.ticket" : "1",
  51. <?php
  52.  
  53. if ($forwardType > 0)
  54. {
  55.     echo '            "forward.type" : "' . $forwardType . '",' . LB;
  56.     echo '            "forward.id" : "' . $forwardId . '",' . LB;
  57. }
  58.  
  59. ?>
  60.             "sso.ticket" : "<?php echo $ticket; ?>",  
  61.             "processlog.enabled" : "0",  
  62.             "account_id" : "0",  
  63.             "client.starting" : "Loading Habbo Hotel...",
  64.             "flash.client.url" : "http://12.0.0.1/r63/",  
  65.             "user.hash" : "",  
  66.             "facebook.user" : "0",  
  67.             "has.identity" : "0",  
  68.             "flash.client.origin" : "popup"  
  69.     };
  70.     var params = {
  71.         "base" : "http://127.0.0.1/r63/",
  72.         "allowScriptAccess" : "always",
  73.         "menu" : "false",  
  74.         "bgcolor" : "#000",
  75.         "wmode" : "transparent"            
  76.     };
  77.      
  78.     if (!(HabbletLoader.needsFlashKbWorkaround())) {
  79.         params["wmode"] = "opaque";
  80.     }
  81.      
  82.     var clientUrl = "http://127.0.0.1/r63/Habbo.swf";
  83.     try {
  84.         if (swfobject.getFlashPlayerVersion().major <= 9) {  
  85.             clientUrl = "http://127.0.0.1/r63/Habbo.swf";  
  86.         }
  87.     } catch(e) {}
  88.     swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
  89. </script>  
  90.  
  91. <div id="overlay"></div>  
  92. <div id="client-ui" >  
  93.     <div id="flash-wrapper">  
  94.     <div id="flash-container">  
  95.         <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
  96. <div class="cbb clearfix">  
  97.     <h2 class="title">Please install Adobe Flash Player.</h2>
  98.     <div class="box-content">  
  99.             <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>  
  100.             <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/207/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>  
  101.     </div>  
  102. </div>  
  103.         </div>  
  104.         <script type="text/javascript">  
  105.             $('content').show();
  106.         </script>  
  107.         <noscript>  
  108.             <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">  
  109.                 <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>  
  110.             </div>  
  111.         </noscript>  
  112.     </div>  
  113.     </div>  
  114.     <div id="content" class="client-content"></div>            
  115. </div>  
  116.     <div style="display: none">  
  117. <div id="habboCountUpdateTarget">  
  118. %hotel_status%
  119. </div>  
  120.     <script language="JavaScript" type="text/javascript">  
  121.         setTimeout(function() {
  122.             HabboCounter.init(600);
  123.         }, 20000);
  124.     </script>  
  125.     </div>  
  126.     <script type="text/javascript">  
  127.         RightClick.init("flash-wrapper", "flash-container");
  128.     </script>  
  129.  
  130.  
  131.  
  132. <script type="text/javascript">
  133. jjLoader.init('client', 6, 'http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/737/web-gallery/v2/images/habbologo_whiteR.gif', 'http://habbo.hs.llnwd.net/c_images/hotel_view_images_hq/hotelview_xmas10_000.png');
  134. </script>
  135.  
  136. </body>  
  137. </html>
  138.