Advertisement
Guest User

client.php

a guest
Jul 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.81 KB | None | 0 0
  1. <head>
  2. <link rel="stylesheet" href="/templates/brain/client/css/client.css" type="text/css">
  3. <link rel="stylesheet" href="/templates/brain/client/css/no-flash.css" type="text/css">
  4. </head>
  5. <center id="init_client">
  6. <button class="leave_hotel" onclick="openClient()" id="widgetButton">Back to site</button>
  7. <?php if($hotel['customPurse'] == true) {?>
  8. <div class="currency" id="widgetCurrency">
  9. <p style="background-image: url(/templates/brain/style/images/icons/crediticon.png);"><span id="coins">{credits}</span> Credits</p>
  10. <p style="background-image: url(/templates/brain/style/images/icons/diaicon.png);"><span id="diamonds">{vip_points}</span> Diamonds</p>
  11. <p style="background-image: url(/templates/brain/style/images/icons/duckicon.png);"><span id="duckets">{activity_points}</span> Duckets</p>
  12. </div>
  13. <?php } ?>
  14. <div id="loader-wrapper">
  15. <div class="loader">
  16. <div id="loader" class="logo">
  17. <div class="loading_bar">
  18. <div class="percent" id="loader_bar"></div>
  19. <p id="percent">0%</p>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div id="client-ui">
  25. <div class="client" id="client" style="position:relative"></div>
  26. <div class="hb-container" id="area-container">
  27. <h1 class="text" id="client-title"></h1>
  28. <div id="no-flash" style="display: none;">
  29. <div id="info-allow"></div>
  30. <div id="info-allow-button" style="display: none; text-align: center;">
  31. <a href="https://get.adobe.com/nl/flashplayer/" target="_blank" id="allow-flash-button-extern" class="client-reload__button" style="display: none;"><?=$lang['nbutton']?></a>
  32. <button id="allow-flash-button-more" class="client-reload__button" style="display: none; background-color: #f44336;border-color: #d66d66;color: #fff;"><?=$lang['nbuttonerror']?></button>
  33. </div>
  34. <p id="info-flash">
  35. <?=$lang['ninfoflash']?>
  36. <br /><br />
  37. <?=$lang['ninfoflashtray']?><br /><br />
  38. <b style="font-weight: bold;"><?=$lang['ninfoflashpc']?></b>
  39. </p>
  40. <div id="info-flash-extra">
  41. <ul>
  42. <li>Download <a href="https://get.adobe.com/nl/flashplayer/">Adobe Flash Player</a> <?=$lang['nfree']?></li>
  43. </ul>
  44. <br />
  45. <b style="font-weight: bold;"><?=$lang['nenableflash']?></b>
  46. <ul>
  47. <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-chrome.html">Google Chrome</a>
  48. <?=$lang['nenableflashinfo']?>
  49. </li>
  50. <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/install-flash-player-windows.html">Internet Explorer</a>
  51. <?=$lang['nenableflashinfo']?>
  52. </li>
  53. <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-10-edge.html">Microsoft Edge</a>
  54. <?=$lang['nenableflashinfo']?>
  55. </li>
  56. <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-firefox.html">Firefox</a>
  57. <?=$lang['nenableflashinfo']?>
  58. </li>
  59. <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-safari.html">Apple Safari</a>
  60. <?=$lang['nenableflashinfo']?>
  61. </li>
  62. </ul>
  63. </div>
  64. </div>
  65. </div>
  66. <script>
  67. var Client = new SWFObject("<?php echo $hotel['swfFolderSwf']; ?>?<?= time();?>", "client", "100%", "100%", "10.0.0");
  68. Client.addVariable("client.allow.cross.domain", "0");
  69. Client.addVariable("client.notify.cross.domain", "1");
  70. Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
  71. Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
  72. Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
  73. Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
  74. Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
  75. Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
  76. Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
  77. Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>?v=<?= time(); ?>");
  78. Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>?v=<?= time(); ?>");
  79. Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>?v=<?= time(); ?>");
  80. Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>?v=<?= time(); ?>");
  81. Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>?v=<?= time(); ?>");
  82. Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>?v=<?= time(); ?>");
  83. Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>?v=<?= time(); ?>");
  84. Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>?v=<?= time(); ?>");
  85. Client.addVariable("use.sso.ticket", "1");
  86. Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
  87. Client.addVariable("processlog.enabled", "1");
  88. Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
  89. Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
  90. Client.addVariable("flash.client.origin", "popup");
  91. Client.addVariable("ads.domain", "");
  92. Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
  93. Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
  94. Client.addParam('allowScriptAccess', 'always');
  95. Client.addParam('wmode', "opaque");
  96. Client.write('client');
  97. FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
  98. $(document).ready(function() {
  99. if (FlashDetect.installed) {
  100. $("#area-container").remove();
  101. }
  102. if (!FlashDetect.installed) {
  103. $("#disconnected, #hide-message,#client-support, #no-flash").show();
  104. $("#client").hide();
  105. $("#widgetCurrency").hide();
  106. $("#loader-wrapper").remove();
  107.  
  108. if (bowser.chrome) {
  109. $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
  110. $("#client-title").html('<?=$lang['ntitlechrome']?>');
  111. $("#info-allow").html('<?=$lang['ntxtchrome']?>');
  112. $("#info-allow-button, #allow-flash-button-extern").show();
  113. } else if (bowser.msedge) {
  114. $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
  115. $("#client-title").html('<?=$lang['ntitleedge']?>');
  116. $("#info-allow").html('<?=$lang['ntxtedge']?>');
  117. $("#info-allow-button, #allow-flash-button-extern").show();
  118. }
  119. $("#flash-wrapper").remove();
  120. $(".roomenterad-habblet-container").hide();
  121. connection = false;
  122. }
  123. });
  124. $('#allow-flash-button-extern').click(function(event){
  125. if(bowser.chrome){
  126. $("#info-allow").html('<?=$lang['ntxtchromeerror']?>');
  127. event.stopPropagation();
  128. }
  129. if(bowser.msedge){
  130. $("#info-allow").html('<?=$lang['ntxtedgeerror']?>');
  131. event.stopPropagation();
  132. }
  133. $("#allow-flash-button-extern").hide();
  134. $("#allow-flash-button-more").show();
  135. });
  136. $('#allow-flash-button-more').click(function(){
  137. if(bowser.chrome){
  138. location.href="https://get.adobe.com/nl/flashplayer/";
  139. }
  140. });
  141. </script>
  142. </div>
  143. </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement