SHARE
TWEET

Untitled

a guest May 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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/browse.js"></script>
  16.       <script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
  17.       <link rel="stylesheet" href="/templates/brain/client/css/client.css" type="text/css">
  18.       <link rel="stylesheet" href="/templates/brain/client/css/no-flash.css" type="text/css">
  19.    </head>
  20.    <body>
  21.       <?php
  22.          if($hotel['onlineCounter'] == true)
  23.          {
  24.              ?>
  25.       <script type="text/javascript">
  26.          $(document).ready(function(e) {
  27.              $.ajaxSetup({
  28.                  cache:true
  29.              });
  30.              setInterval(function() {
  31.                  $('#onlinecount').load('/onlinecountclient');
  32.              }, 8000);
  33.              $( "#onlinecount").click(function() {
  34.                  $('#onlinecount').load('/onlinecountclient');
  35.              });
  36.          });
  37.       </script>
  38.       <div class="clientOnlineBox">
  39.          <div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
  40.          <img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
  41.       </div>
  42.       <?php
  43.          }
  44.          ?>
  45.       <center>
  46.          <div id="client-ui">
  47.          <div class="client" id="client"></div>
  48.          <div class="hb-container" id="area-container">
  49.             <h1 class="text" id="client-title"></h1>
  50.             <div id="no-flash" style="display: none;">
  51.                <div id="info-allow"></div>
  52.                <div id="info-allow-button" style="display: none; text-align: center;">
  53.                   <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>
  54.                   <button id="allow-flash-button-more" class="client-reload__button" style="display: none; background-color: #f44336;border-color: #d66d66;color: #fff;"><?=$lang['nbuttonerror']?></button>
  55.                </div>
  56.                <p id="info-flash">
  57.                   <?=$lang['ninfoflash']?>
  58.                   <br /><br />
  59.                  <?=$lang['ninfoflashtray']?><br /><br />
  60.                   <b style="font-weight: bold;"><?=$lang['ninfoflashpc']?></b>
  61.                </p>
  62.                <div id="info-flash-extra">
  63.                   <ul>
  64.                      <li>Download <a href="https://get.adobe.com/nl/flashplayer/">Adobe Flash Player</a> <?=$lang['nfree']?></li>
  65.                   </ul>
  66.                   <br />
  67.                   <b style="font-weight: bold;"><?=$lang['nenableflash']?></b>
  68.                   <ul>
  69.                      <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-chrome.html">Google Chrome</a>
  70.                         <?=$lang['nenableflashinfo']?>
  71.                      </li>
  72.                      <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/install-flash-player-windows.html">Internet Explorer</a>
  73.                         <?=$lang['nenableflashinfo']?>
  74.                      </li>
  75.                      <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-10-edge.html">Microsoft Edge</a>
  76.                         <?=$lang['nenableflashinfo']?>
  77.                      </li>
  78.                      <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-firefox.html">Firefox</a>
  79.                         <?=$lang['nenableflashinfo']?>
  80.                      </li>
  81.                      <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-safari.html">Apple Safari</a>
  82.                         <?=$lang['nenableflashinfo']?>
  83.                      </li>
  84.                   </ul>
  85.                </div>
  86.             </div>
  87.          </div>
  88.          <script>
  89.             var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
  90.             Client.addVariable("client.allow.cross.domain", "0");
  91.             Client.addVariable("client.notify.cross.domain", "1");
  92.             Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
  93.             Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
  94.             Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
  95.             Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
  96.             Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
  97.             Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
  98.             Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
  99.             Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
  100.             Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
  101.             Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
  102.             Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
  103.             Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
  104.             Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
  105.             Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
  106.             Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
  107.             Client.addVariable("use.sso.ticket", "1");
  108.             Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
  109.             Client.addVariable("processlog.enabled", "0");
  110.             Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
  111.             Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
  112.             Client.addVariable("flash.client.origin", "popup");
  113.             Client.addVariable("ads.domain", "");
  114.             Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
  115.             Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
  116.             Client.addParam('allowScriptAccess', 'always');
  117.             Client.addParam('wmode', "opaque");
  118.             Client.write('client');
  119.             FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
  120.            
  121.             $(document).ready(function() {
  122.             if (!FlashDetect.installed) {
  123.             $("#disconnected, #hide-message,#client-support, #no-flash").show();
  124.             $("#client").hide();
  125.             if (bowser.chrome) {
  126.                 $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
  127.                 $("#client-title").html('<?=$lang['ntitlechrome']?>');
  128.                 $("#info-allow").html('<?=$lang['ntxtchrome']?>');
  129.                 $("#info-allow-button, #allow-flash-button-extern").show();
  130.             } else if (bowser.msedge) {
  131.                 $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
  132.                 $("#client-title").html('<?=$lang['ntitleedge']?>');
  133.                 $("#info-allow").html('<?=$lang['ntxtedge']?>');
  134.                 $("#info-allow-button, #allow-flash-button-extern").show();
  135.             }
  136.             $("#disconnected").show().css('z-index', 0);
  137.             $("#flash-wrapper").remove();
  138.             $(".roomenterad-habblet-container").hide();
  139.             connection = false;
  140.             }
  141.             });
  142.             $('#allow-flash-button-extern').click(function(event){
  143.             if(bowser.chrome){
  144.             $("#info-allow").html('<?=$lang['ntxtchromeerror']?>');
  145.             event.stopPropagation();
  146.             }
  147.             if(bowser.msedge){
  148.             $("#info-allow").html('<?=$lang['ntxtedgeerror']?>');
  149.             event.stopPropagation();
  150.             }
  151.             $("#allow-flash-button-extern").hide();
  152.             $("#allow-flash-button-more").show();
  153.             });
  154.             $('#allow-flash-button-more').click(function(){
  155.             if(bowser.chrome){
  156.             location.href="https://get.adobe.com/nl/flashplayer/";
  157.             }
  158.             });
  159.          </script>
  160.       </center>
  161.    </body>
  162. </html>
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