Guest User

Untitled

a guest
Apr 10th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.96 KB | None | 0 0
  1. <?php
  2.  
  3. require_once('./include/core.php');
  4.  
  5. mysql_query("UPDATE users SET auth_ticket = '', auth_ticket = '".GenerateTicket()."', ip_last = '', ip_last = '".$remote_ip."' WHERE id = '".$my_id."'") or die(mysql_error());
  6.  
  7. $ticketsql = mysql_query("SELECT * FROM users WHERE id = '".$my_id."'") or die(mysql_error());
  8. $ticketrow = mysql_fetch_assoc($ticketsql);
  9.  
  10. if(!isset($_SESSION['username'])){
  11. header("Location: ".$path."/login_popup");
  12. exit();
  13. }
  14.  
  15. require_once('./templates/room/ROOM-iRLi64isqi.php');
  16.  
  17. if($user_rank < 2 && $online_count >= $limit){
  18.  
  19. if(!isset($_SESSION['acp']) && $user_rank > 5){
  20. echo"<script>alert(\"Bitte log dich ins Housekeeping ein, damit du ins Hotel einchecken kannst.\");</script>
  21. <meta http-equiv=\"refresh\" content=\"0;url=".$adminpath."/p/login&do=secretcode\">";
  22. }
  23.  
  24. $pagename = "Clientlimit";
  25. $body_id = "logout";
  26.  
  27. require_once('./templates/login_subheader.php');
  28. require_once('./templates/login_header.php');
  29. ?>
  30.  
  31.  
  32.  
  33. <br>
  34. <div id="intermediate" >
  35. <h2><center>Clientlimit</center></h2>
  36. <div id="enter-hotel">
  37. <div class="open enter-btn">
  38. <a href="<?php echo $path; ?>/me" target="me" onclick="return onClientOpen(this)">Einchecken<i></i></a><b></b>
  39. </div>
  40. </div>
  41.  
  42. <div id="info">
  43. Zurzeit sind <b><?php echo $online_count; ?></b> Online!<br>Clientlimit: <b><?php echo $client_limit['value']; ?></b><br><br>Sobald <b><?php echo $online_count + 1 - $client_limit['value']; ?></b> Mitglieder Offline gegangen sind, kannst du Einchecken!
  44. </div>
  45.  
  46. <div id="enter-mypage">
  47. <a href="<?php echo $path; ?>/client" class="new-button green-button" style="left: -250px;"><b>Aktualsieren &raquo;</b><i></i></a>
  48. <a href="<?php echo $path; ?>" class="new-button red-button" style="left: -250px;"><b>&laquo; Zurück</b><i></i></a>
  49. </div>
  50. <?php require_once('./templates/login_footer.php'); }else{ require_once('./templates/client_subheader.php'); ?>
  51.  
  52. <script type="text/javascript">
  53. function DoResize()
  54. {
  55. var nHeight;
  56. if (typeof window.innerHeight == 'undefined')
  57. {
  58. nHeight = document.body.clientHeight -40;
  59. }
  60. else
  61. {
  62. nHeight = window.innerHeight -40;
  63. }
  64.  
  65. document.getElementById('flash').style.height = nHeight+'px';
  66. }
  67. var flashvars = {
  68. "client.allow.cross.domain" : "1",
  69. "client.notify.cross.domain" : "0",
  70. "connection.info.host" : "127.0.0.1",
  71. "connection.info.port" : "30000",
  72. "site.url" : "http://127.0.0.1",
  73. "url.prefix" : "<?php echo $path; ?>",
  74. "client.reload.url" : "http://127.0.0.1/client",
  75. "client.fatal.error.url" : "http://127.0.0.1/clientutils",
  76. "client.connection.failed.url" : "http://127.0.0.1/clientutils",
  77. "external.variables.txt" : "<?php echo FetchSITESetting('client_variables'); ?>",
  78. "external.texts.txt" : "<?php echo FetchSITESetting('client_texts'); ?>",
  79. "productdata.load.url" : "<?php echo FetchSITESetting('client_productdata'); ?>",
  80. "furnidata.load.url" : "<?php echo FetchSITESetting('client_furnidata'); ?>",
  81. "use.sso.ticket" : "1",
  82. "sso.ticket" : "<?php echo $ticketrow['auth_ticket']; ?>",
  83. "processlog.enabled" : "1",
  84. "account_id" : "<?php echo $my_id; ?>",
  85. "client.starting" : "Bitte warten! <?php echo $shortname; ?> wird geladen.",
  86. "flash.client.url" : "http://127.0.0.1/GAMEDATA/xubbo.swf",
  87. "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
  88. "has.identity" : "1",
  89. "flash.client.origin" : "popup"
  90. };
  91. var params = {
  92. "base" : "<?php echo FetchSITESetting('client_swf_path'); ?>",
  93. "allowScriptAccess" : "always",
  94. "menu" : "false",
  95. "wmode" : "opaque"
  96. };
  97.  
  98.  
  99. FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/account/logout?token=<?php echo sha1($myrow['password']); ?>";
  100.  
  101. var clientUrl = "<?php echo FetchSITESetting('client_habbo_swf'); ?>";
  102.  
  103. swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "hhnewloader/expressInstall.swf", flashvars, params);
  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. //window.onresize = DoResize;
  117. window.onload = DoResize;
  118. </script>
  119.  
  120. </head>
  121.  
  122. <meta name="build" content="63-BUILD406 - 09.05.2011 23:04 - de" />
  123. </head>
  124.  
  125. <body id="client" class="flashclient">
  126.  
  127. <div id="overlay"></div>
  128. <div id="client-ui">
  129. <div id="flash-wrapper">
  130. <div id="flash-container">
  131. <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
  132. <div class="cbb clearfix">
  133. <h2 class="title">Bitte besorg dir die neueste Adobe Flash Player Version.</h2>
  134.  
  135. <div class="box-content">
  136. <p>Hier kannst Du den Adobe Flashplayer herunterladen und installieren: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. Mehr Informationen und Anweisungen zur Installation sind hier zu finden: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">Mehr Informationen</a></p>
  137. <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>
  138. </div>
  139. </div>
  140. </div>
  141. <script type="text/javascript">
  142. $('content').show();
  143. </script>
  144.  
  145. <noscript>
  146. <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
  147. <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
  148. </div>
  149. </noscript>
  150. </div>
  151. </div></div>
  152.  
  153.  
  154.  
  155. <div id="content" class="client-content"></div>
  156.  
  157.  
  158. </body>
  159. </html>
  160.  
  161. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment