Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. <?php
  2. staffCheck();
  3. Game::sso('client');
  4. Game::homeRoom();
  5. ?>
  6. <html>
  7. </body>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  10. <title><?= $config['hotelName'] ?> Hotel</title>
  11. <script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
  12. <script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
  13. <script src="/templates/brain/client/js/flashclient.js"></script>
  14. <script src="/templates/brain/client/js/flash_detect_min.js"></script>
  15. <script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
  16. <link rel="stylesheet" href="/templates/brain/client/css/client.css?v=5" type="text/css">
  17. </head>
  18. <body>
  19. <?php
  20. if($hotel['onlineCounter'] == true)
  21. {
  22. ?>
  23. <script type="text/javascript">
  24. $(document).ready(function(e) {
  25. $.ajaxSetup({
  26. cache:true
  27. });
  28. setInterval(function() {
  29. $('#onlinecount').load('/onlinecountclient');
  30. }, 8000);
  31. $( "#onlinecount").click(function() {
  32. $('#onlinecount').load('/onlinecountclient');
  33. });
  34. });
  35. </script>
  36. <div class="clientOnlineBox">
  37. <div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
  38. <img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
  39. </div>
  40. <?php
  41. }
  42. ?>
  43. <center>
  44. <div id="client-ui">
  45. <div class="client" id="client"></div>
  46. </div>
  47. <script>
  48. var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
  49. Client.addVariable("client.allow.cross.domain", "0");
  50. Client.addVariable("client.notify.cross.domain", "1");
  51. Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
  52. Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
  53. Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
  54. Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
  55. Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
  56. Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
  57. Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
  58. Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
  59. Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
  60. Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
  61. Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
  62. Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
  63. Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
  64. Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
  65. Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
  66. Client.addVariable("use.sso.ticket", "1");
  67. Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
  68. Client.addVariable("processlog.enabled", "0");
  69. Client.addVariable("client.starting", "<?= $config['hotelName'] ?> carregando...");
  70. Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
  71. Client.addVariable("flash.client.origin", "popup");
  72. Client.addVariable("ads.domain", "");
  73. Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
  74. Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
  75. Client.addParam('allowScriptAccess', 'always');
  76. Client.addParam('wmode', "opaque");
  77. Client.write('client');
  78. FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
  79. </script>
  80. </center>
  81. </body>
  82. <script>
  83. //no flash?!
  84. if(!FlashDetect.installed){
  85. window.location.href = "<?= $config['hotelUrl'] ?>/noflash";
  86. }
  87. </script>
  88. </html>
  89. </center>
  90. </div>
  91. </head>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement