Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <link rel="stylesheet" href="/templates/brain/client/css/client.css" type="text/css">
- <link rel="stylesheet" href="/templates/brain/client/css/no-flash.css" type="text/css">
- </head>
- <center id="init_client">
- <button class="leave_hotel" onclick="openClient()" id="widgetButton">Back to site</button>
- <?php if($hotel['customPurse'] == true) {?>
- <div class="currency" id="widgetCurrency">
- <p style="background-image: url(/templates/brain/style/images/icons/crediticon.png);"><span id="coins">{credits}</span> Credits</p>
- <p style="background-image: url(/templates/brain/style/images/icons/diaicon.png);"><span id="diamonds">{vip_points}</span> Diamonds</p>
- <p style="background-image: url(/templates/brain/style/images/icons/duckicon.png);"><span id="duckets">{activity_points}</span> Duckets</p>
- </div>
- <?php } ?>
- <div id="loader-wrapper">
- <div class="loader">
- <div id="loader" class="logo">
- <div class="loading_bar">
- <div class="percent" id="loader_bar"></div>
- <p id="percent">0%</p>
- </div>
- </div>
- </div>
- </div>
- <div id="client-ui">
- <div class="client" id="client" style="position:relative"></div>
- <div class="hb-container" id="area-container">
- <h1 class="text" id="client-title"></h1>
- <div id="no-flash" style="display: none;">
- <div id="info-allow"></div>
- <div id="info-allow-button" style="display: none; text-align: center;">
- <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>
- <button id="allow-flash-button-more" class="client-reload__button" style="display: none; background-color: #f44336;border-color: #d66d66;color: #fff;"><?=$lang['nbuttonerror']?></button>
- </div>
- <p id="info-flash">
- <?=$lang['ninfoflash']?>
- <br /><br />
- <?=$lang['ninfoflashtray']?><br /><br />
- <b style="font-weight: bold;"><?=$lang['ninfoflashpc']?></b>
- </p>
- <div id="info-flash-extra">
- <ul>
- <li>Download <a href="https://get.adobe.com/nl/flashplayer/">Adobe Flash Player</a> <?=$lang['nfree']?></li>
- </ul>
- <br />
- <b style="font-weight: bold;"><?=$lang['nenableflash']?></b>
- <ul>
- <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-chrome.html">Google Chrome</a>
- <?=$lang['nenableflashinfo']?>
- </li>
- <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/install-flash-player-windows.html">Internet Explorer</a>
- <?=$lang['nenableflashinfo']?>
- </li>
- <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-10-edge.html">Microsoft Edge</a>
- <?=$lang['nenableflashinfo']?>
- </li>
- <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-firefox.html">Firefox</a>
- <?=$lang['nenableflashinfo']?>
- </li>
- <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-safari.html">Apple Safari</a>
- <?=$lang['nenableflashinfo']?>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <script>
- var Client = new SWFObject("<?php echo $hotel['swfFolderSwf']; ?>?<?= time();?>", "client", "100%", "100%", "10.0.0");
- Client.addVariable("client.allow.cross.domain", "0");
- Client.addVariable("client.notify.cross.domain", "1");
- Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
- Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
- Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
- Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
- Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
- Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
- Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
- Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>?v=<?= time(); ?>");
- Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>?v=<?= time(); ?>");
- Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>?v=<?= time(); ?>");
- Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>?v=<?= time(); ?>");
- Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>?v=<?= time(); ?>");
- Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>?v=<?= time(); ?>");
- Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>?v=<?= time(); ?>");
- Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>?v=<?= time(); ?>");
- Client.addVariable("use.sso.ticket", "1");
- Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
- Client.addVariable("processlog.enabled", "1");
- Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
- Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
- Client.addVariable("flash.client.origin", "popup");
- Client.addVariable("ads.domain", "");
- Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
- Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
- Client.addParam('allowScriptAccess', 'always');
- Client.addParam('wmode', "opaque");
- Client.write('client');
- FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
- $(document).ready(function() {
- if (FlashDetect.installed) {
- $("#area-container").remove();
- }
- if (!FlashDetect.installed) {
- $("#disconnected, #hide-message,#client-support, #no-flash").show();
- $("#client").hide();
- $("#widgetCurrency").hide();
- $("#loader-wrapper").remove();
- if (bowser.chrome) {
- $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
- $("#client-title").html('<?=$lang['ntitlechrome']?>');
- $("#info-allow").html('<?=$lang['ntxtchrome']?>');
- $("#info-allow-button, #allow-flash-button-extern").show();
- } else if (bowser.msedge) {
- $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
- $("#client-title").html('<?=$lang['ntitleedge']?>');
- $("#info-allow").html('<?=$lang['ntxtedge']?>');
- $("#info-allow-button, #allow-flash-button-extern").show();
- }
- $("#flash-wrapper").remove();
- $(".roomenterad-habblet-container").hide();
- connection = false;
- }
- });
- $('#allow-flash-button-extern').click(function(event){
- if(bowser.chrome){
- $("#info-allow").html('<?=$lang['ntxtchromeerror']?>');
- event.stopPropagation();
- }
- if(bowser.msedge){
- $("#info-allow").html('<?=$lang['ntxtedgeerror']?>');
- event.stopPropagation();
- }
- $("#allow-flash-button-extern").hide();
- $("#allow-flash-button-more").show();
- });
- $('#allow-flash-button-more').click(function(){
- if(bowser.chrome){
- location.href="https://get.adobe.com/nl/flashplayer/";
- }
- });
- </script>
- </div>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement