HabboEmulator ~ Support thread.

Brad

Well-Known Member
Jun 5, 2012
2,320
993
Hi,
as many people are having issues with the emulator I thought this thread was needed.

Post your issues below and I will reply with a fix or help you to fix your issue.

Thanks.
 

cammy

Member
May 15, 2014
481
238
Chat colours don't work?
z2aljU0.png

And crackable eggs don't work...
Error in packet [926] BODY: [0][0]2[0][0][0][0]:
System.NullReferenceException: Object reference not set to an instance of an object.
at Plus.Items.Interactor.InteractorCrackableEgg.CompleteEgg(Item Item, GameClient Session, Int32 Current, Int32 Target, Room Room) in C:\Users\Administrator\Desktop\Emulator\HabboHotel\Items\Interactor\InteractorCrackableEgg.cs:line 132
at Plus.Items.Interactor.InteractorCrackableEgg.OnTrigger(GameClient Session, Item Item, Int32 Request, Boolean HasRights) in C:\Users\Administrator\Desktop\Emulator\HabboHotel\Items\Interactor\InteractorCrackableEgg.cs:line 44
at Emulator.Communication.Packets.Incoming.Rooms.Engine.UseFurnitureEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\Emulator\Communication\Packets\Incoming\Rooms\Engine\UseFurnitureEvent.cs:line 83
at Emulator.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\Emulator\Communication\Packets\PacketManager.cs:line 158
at Emulator.HabboHotel.GameClients.GameClient.Parser_onNewPacket(ClientPacket Message) in C:\Users\Administrator\Desktop\Emulator\HabboHotel\GameClients\GameClient.cs:line 76
 
Last edited:

Sonay

Sonay#0001
Mar 24, 2016
103
53
Hope anyone can help me. :D

After 100% I'm going a bit on hotelview and then my console says: Received event, with call: disconnect

Edit: I become the client disconnection after GetBuddyRequestsEvent. But why?
 
Last edited:

gashhay

New Member
Feb 21, 2018
11
2
I just started an R63B everything seems perfect so far. The only thing not working is the habbo club. I click join the page pops up some of it disappears. I enabled the buy club page from the database but that just freezes. I really want my Habbo club to work like habboons hotel's.
 

NathannHerre16

New Member
Jun 29, 2018
12
3
I'm having problems trying to get into the client. It will load and get stuck at 76%. I've checked all the vars over and over and still can't seem to find the issue. Does anyone know how to fix this?

I'm using BrainCMS 1.9.1
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
I'm having problems trying to get into the client. It will load and get stuck at 76%. I've checked all the vars over and over and still can't seem to find the issue. Does anyone know how to fix this?

I'm using BrainCMS 1.9.1
Sounds like SWF’s, config, ports or the SWF production. Have you checked over these to see if they link? Don’t forget overrides.
 

NathannHerre16

New Member
Jun 29, 2018
12
3
You must be registered for see images attach


## uberEmulator System Configuration File
## Must be edited for the server to work

## MySQL Configuration
db.hostname=127.0.0.1
db.port=3306
db.username=root
db.password=***
db.name=hotel

## MySQL pooling setup (controls amount of connections)
db.pool.minsize=10
db.pool.maxsize=250

## Game TCP/IP Configuration
game.tcp.bindip=***
game.tcp.port=30000
game.tcp.conlimit=100000
game.tcp.conperip=200
game.tcp.enablenagles=true

## rcon TCP/IP Configuration
rcon.tcp.bindip=***
rcon.tcp.port=30001
rcon.tcp.allowedaddr=localhost;***

## Client configuration
client.ping.enabled=1
client.ping.interval=20000
client.maxrequests=300

## Camera configuration
camera.path.preview=preview/{1}-{0}.png
camera.path.purchased=purchased/{1}-{0}.png
camera.preview.maxcache=1000

2018-12-21 04:02:10,234 INFO - Emulator.HabboEnvironment >> Connected to Database!
2018-12-21 04:02:10,457 INFO - Emulator.HabboHotel.Moderation.ModerationManager >> Loaded 7 moderation presets.
2018-12-21 04:02:10,457 INFO - Emulator.HabboHotel.Moderation.ModerationManager >> Loaded 6 moderation categories.
2018-12-21 04:02:10,458 INFO - Emulator.HabboHotel.Moderation.ModerationManager >> Loaded 6 moderation action preset messages.
2018-12-21 04:02:10,458 INFO - Emulator.HabboHotel.Moderation.ModerationManager >> Cached 0 username and machine bans.
2018-12-21 04:02:10,458 INFO - Emulator.HabboHotel.Moderation.ModerationManager >> Moderation Manager -> LOADED
2018-12-21 04:02:10,729 INFO - Emulator.HabboHotel.Items.ItemDataManager >> Item Manager -> LOADED
2018-12-21 04:02:10,732 INFO - Cloud.HabboHotel.Items.Crafting.CraftingManager >> » Crafring Manager -> LOADED
2018-12-21 04:02:10,743 INFO - Emulator.HabboHotel.Items.RareBundlesManager >> RareBundleManager -> LOADED 1 Room Bundles.
2018-12-21 04:02:10,773 ERROR - Emulator.HabboHotel.Items.CrateManager >> Couldn't load Catalog Item 3840, no furniture record found.
2018-12-21 04:02:10,775 ERROR - Emulator.HabboHotel.Items.CrateManager >> Couldn't load Catalog Item 4836, no furniture record found.
2018-12-21 04:02:10,783 ERROR - Emulator.HabboHotel.Items.CrateManager >> Couldn't load Catalog Item 2741, no furniture record found.
2018-12-21 04:02:10,783 INFO - Emulator.HabboHotel.Items.CrateManager >> CrateManager -> LOADED
2018-12-21 04:02:10,786 INFO - Emulator.HabboHotel.Items.Crackable >> Crackable Manager -> LOADED
2018-12-21 04:02:10,787 INFO - Emulator.HabboHotel.Items.Crackable >> LOADED A TOTAL OF 1 Crackable item Prizes
2018-12-21 04:02:11,052 INFO - Plus.Catalog.HabboClub.HabboClubManager >> Loaded 2 catalog subscriptions and 0 club gifts.
2018-12-21 04:02:11,053 INFO - Emulator.HabboHotel.Catalog.CatalogManager >> Catalog Manager -> LOADED
2018-12-21 04:02:11,055 INFO - Emulator.HabboHotel.Items.Televisions.TelevisionManager >> Television Items -> LOADED
2018-12-21 04:02:11,085 INFO - Emulator.HabboHotel.Navigator.NavigatorManager >> Navigator -> LOADED
2018-12-21 04:02:11,101 INFO - Emulator.HabboHotel.Rooms.RoomManager >> Room Manager -> LOADED
2018-12-21 04:02:11,149 INFO - Emulator.HabboHotel.Rooms.Chat.Styles.ChatStyleManager >> Loaded 38 chat styles.
2018-12-21 04:02:11,149 INFO - Emulator.HabboHotel.Rooms.Chat.ChatManager >> Chat Manager -> LOADED
2018-12-21 04:02:11,166 INFO - Emulator.HabboHotel.Quests.QuestManager >> Quest Manager -> LOADED
2018-12-21 04:02:11,192 INFO - Emulator.HabboHotel.Achievements.AchievementManager >> Achievement Manager -> LOADED
2018-12-21 04:02:11,214 INFO - Emulator.HabboHotel.LandingView.LandingViewManager >> Landing View Manager -> LOADED
2018-12-21 04:02:11,218 INFO - Emulator.HabboHotel.Games.GameDataManager >> Game Data Manager -> LOADED
2018-12-21 04:02:11,219 INFO - Mango.Global.ServerUpdater >> Server Status Updater has been started.
2018-12-21 04:02:11,221 INFO - Emulator.HabboHotel.Global.LanguageLocale >> Language Locale Manager -> LOADED
2018-12-21 04:02:11,225 INFO - Emulator.HabboHotel.Cache.CacheManager >> Cache Manager -> LOADED
2018-12-21 04:02:11,256 INFO - Emulator.HabboHotel.Badges.BadgeManager >> Loaded 4623 badge definitions.
2018-12-21 04:02:11,274 INFO - Emulator.HabboHotel.Permissions.PermissionManager >> Loaded 52 permissions.
2018-12-21 04:02:11,275 INFO - Emulator.HabboHotel.Permissions.PermissionManager >> Loaded 9 permissions groups.
2018-12-21 04:02:11,275 INFO - Emulator.HabboHotel.Permissions.PermissionManager >> Loaded 6 permissions group rights.
2018-12-21 04:02:11,276 INFO - Emulator.HabboHotel.Permissions.PermissionManager >> Loaded 3 permissions subscription rights.
2018-12-21 04:02:11,292 INFO - Emulator.Subscriptions.SubscriptionManager >> Loaded 4 subscriptions and 1 club subscriptions.
2018-12-21 04:02:11,361 INFO - Emulator.Core.ConnectionManager >> Successfully setup GameSocketManager on port (30000)!
2018-12-21 04:02:11,362 INFO - Emulator.Core.ConnectionManager >> Maximum connections per IP has been set to [200]!
2018-12-21 04:02:11,365 INFO - Emulator.HabboEnvironment >> EMULATOR -> READY! (1 s, 756 ms)

<?php
if(!defined('BRAIN_CMS'))
{
die('Sorry but you cannot access this file!');
}

/* Database Setting */
$db['host'] = '127.0.0.1'; //Mysql's Host
$db['port'] = '3306'; //Mysql's port
$db['user'] = "root"; //Mysql's user
$db['pass'] = '****'; //Mysql's password
$db['db'] = "hotel"; //Mysql's database

/* Emu Settings */
$config['hotelEmu'] = 'plusemu'; // plusemu // arcturus

/* Client Setting */
$hotel['emuHost'] = "***"; //IP of VPS//IP of Proxy
$hotel['emuPort'] = "30000"; //Port of VPS//Port of Proxy
$hotel['staffCheckClient'] = false; //Enable the staff pin in the client (true) or disable it (false)
$hotel['staffCheckClientMinimumRank'] = 3; //Minium staff rank to get the staff pin in the client
$hotel['homeRoom'] = '0'; //Set the start room when you get in the hotel
$hotel['external_Variables'] = " ";
$hotel['external_Variables_Override'] = " ";
$hotel['external_Texts'] = " ";
$hotel['external_Texts_Override'] = " ";
$hotel['productdata'] = " ";
$hotel['furnidata'] = " ";
$hotel['figuremap'] = " ";
$hotel['figuredata'] = " ";
$hotel['swfFolder'] = " ";
$hotel['swfFolderSwf'] = " ";
$hotel['onlineCounter'] = true; // Enable the user count in the client.
$hotel['diamonds.enabled'] = true; // Enable diamonds in the hotel.

/* Website Setting */
$config['hotelUrl'] = " ";//Address of your hotel. Does not end with a "/"
$config['skin'] = "brain"; //Skin/template of your website
$config['lang'] = "en"; //Language of your website en/nl/es
$config['hotelName'] = "Habvice"; //Name of your hotel
$config['favicon'] = " ";
$config['staffCheckHk'] = false; //Enable the staff pin in the housekeeping (true) or disable it (false)
$config['staffCheckHkMinimumRank'] = 4; //Minium staff rank to get the staff pin in the housekeeping
$config['maintenance'] = true; //Enable the maintenance of your website (true) or disable it (false)
$config['maintenancekMinimumRankLogin'] = 4; //Minium staff rank to login when the website is in maintenance
$config['groupBadgeURL'] = " ";
$config['badgeURL'] = " ";
$config['userLikeEnable'] = true; // Enable user likes
$config['newsCommandEnable'] = true; //Enable news commands
$config['newsCommandFilter'] = true; //Enable wordfilter on news commands (the filter use the db tabels wordfilter and wordfilter_characters)
$config['alertReferrer'] = false;
$config['alert'] = ''; //Alert message. If you don't want a alert, you do leave it blank.
$config['brainversion'] = '1.9.1'; // Please do not change.

/* Email Settings */
$email['mailServerHost'] = 'smtp.gmail.com';
$email['mailServerPort'] = 587;
$email['SMTPSecure'] = 'TLS';
$email['mailUsername'] = '[email protected]';
$email['mailPassword'] = '*****';
$email['mailLogo'] = '
$email['mailTemplate'] = '/system/app/plugins/PHPmailer/temp/resetpassword.html';

/* Social settings */
$config['facebook'] = '
$config['facebookEnable'] = true;
$config['twitter'] = '
$config['twitterEnable'] = true;

/* Register Setting */
$config['startMotto'] = "I'm new to Habvice!"; //Register start motto
$config['credits'] = "10000";
$config['duckets'] = "20000";
$config['diamonds'] = "0";
$config['diamondsRef'] = "10";
$config['registerEnable'] = true;
$config['look'] = "hr-3163-1035.hd-3092-2.ch-215-63.lg-3320-1189-62.sh-3089-1408.ca-3219-110.wa-2001-0";

/* Google recaptcha Site Key
Go to this website to create a recaptcha Site Key: */
$config['recaptchaSiteKey'] = "6LdzewwUAAAAABkJ3vsdfCDca9qmLGDaWAHqMRtFEs2";
$config['recaptchaSiteKeyEnable'] = false;

/* Buy VIP Settings */
$config['vipCost'] = "25";
$config['vipRankToGet'] = "3";
$config['vipBadge'] = "vip";

switch($config['hotelEmu'])
{
case "arcturus":
$emuUse['user_wardrobe'] = 'users_wardrobe ';
$emuUse['ip_last'] = 'ip_current';
$emuUse['respect'] = 'respects_received';
$emuUse['user_stats'] = 'users_settings';
$emuUse['user_stats_user_id'] = 'user_id';
$emuUse['OnlineTime'] = 'online_time';
break;
case "plusemu":
$emuUse['user_wardrobe'] = 'user_wardrobe ';
$emuUse['ip_last'] = 'ip_last';
$emuUse['respect'] = 'Respect';
$emuUse['user_stats'] = 'user_stats';
$emuUse['user_stats_user_id'] = 'id';
$emuUse['OnlineTime'] = 'OnlineTime';
break;
default:
//Nothing
break;
}

activity.point.display.enabled=true
ads.domain=habvice.com/swf
.............
try.existing.session=false
unique.limited.items.enabled=true
url.prefix.no=
use.default.localizations=false
use_minimized_own_avatar_menu=true
v3_credit_flow.enabled=true
v3_credit_flow_navigation.enabled=true
v3_credit_flow_navigation=true
valentines.enabled=false
vip.snowstorm.offer.length.days=31
viral.furni.post_type=appRequest
welcome.screen.enabled=0
wired.enabled.air=1
xmas11.campaignPrefix=xmas11
xmas11.enabled=false
xmas2012.calendar.enabled=false
xmas2012.calendar.startdate=2012-12-02 00:00
zendesk.url=
zoom.enabled=1
flash.dynamic.icon.download.name.template=icons/%typeid%%param%_icon.png
catalog.deep.hierarchy=true
camera.photo.publishing.enabled=false
stories.image_url_base=
stories.upload_image.url=

productdata.load.url=
external.texts.txt=
external.override.variables.txt=
flash.client.url=
furnidata.load.url=
external.variables.txt=
external.override.texts.txt=
external.figurepartlist.txt=

seasonalcurrencyindicator.currency=103
seasonalcurrencyindicator.enabled=false
seasonalcurrencyindicator.page=diamonds
diamonds.enabled=true


ads.domain=habvice.com
roomenterad.habblet.enabled=false

builders.club.enabled=false
toolbar.stories.enabled=false
navigator.newstyle.enabled=true
hc.enabled=true
talent.track.citizenship.enabled=true
tablet.bc.enabled=false
camera.enabled=false

supersaverads.video.promo.development.mode=false
supersaverads.video.promo.enabled=false

offers.enabled=false
offers.sponsorpay.appid=0
offers.supersonic.enabled=false

avatareditor.promohabbos=

game.center.default_game=basejump
game.center.enabled=true
game.center.promoted_game=basejump

group.blocking.enabled=true

embed.showInRoomInfo=true
sms.identity.verification.button.enabled=false
sms.identity.verification.enabled=false

camera.photo.publishing.enabled=true
stories.image_url_base=
stories.upload_image.url=
camera.uploadlink=
camera.photocost=FREE

multi.item.trading.enabled=true

show.sanction.info.on.login=false
call.for.help.improvements.enabled=true
zendesk.url=

disabled.custom.chat.styles=1,2,8,9,10,18,21,22,23,24,25,26,27,28,30,31,32,33,34,35

flash.dynamic.download.name.template=%typeid%.swf
flash.dynamic.download.url=
flash.dynamic.avatar.download.configuration=
flash.dynamic.icon.download.name.template=%typeid%%param%_icon.png
group.badge.url=

habbopages.url=

flash.client.url=
external.texts.txt=
external.override.texts.txt=
external.override.variables.txt=
productdata.load.url=
furnidata.load.url=

<?php

// Overrides generator

header('content-type: text/plain');

// Check to see if there is already a texts file and when it was last
// updated. If it was last updated over 12 hours ago then we will open
// a database connection to update it.
if(file_exists('external_flash_override_texts.txt') && (time() - 43200 < filemtime('external_flash_override_texts.txt')))
{
include_once('external_flash_override_texts.txt');
}

$sql = new MySQLi('localhost', 'root', ****', 'hotel');

if($sql->connect_error)
{
// There's a problem connecting to the database so the texts cannot
// be updated. The outdated version will be displayed till we can
// get a database connection.
if(file_exists('external_flash_override_texts.txt'))
{
include_once('external_flash_override_texts.txt');
exit;
}
}

ob_start();

if($stmt = $sql->prepare('SELECT `key`,`value` FROM `client_external_texts`'))
{
$stmt->execute();
$stmt->bind_result($key, $value);

while($stmt->fetch())
{
// All results are now fetched from the database so
// we'll output them and cache everything once this
// has finished.
echo $key . "=" . $value . "\r\n";
}

$stmt->close();
}

if($stmt = $sql->prepare('SELECT `badge_code`, `badge_title`, `badge_desc` FROM `client_external_badge_texts`'))
{
$stmt->execute();
$stmt->bind_result($code, $title, $description);

while($stmt->fetch())
{
// All results are now fetched from the database so
// we'll output them and cache everything once this
// has finished.
echo "badge_name_" . $code . "=" . $title . "\r\n";
echo "badge_desc_" . $code . "=" . $description . "\r\n";
}

$stmt->close();
}

$sql->close();

// The above has grabbed the badge names and descriptions from the database
// and outputted them to the page. Now we need to write them to the cache
// so we aren't opening a database connection each time this file is requested.
$file = fopen('external_flash_override_texts.txt', 'w');

fwrite($file, ob_get_contents());
fclose($file);

ob_end_flush();
 

NathannHerre16

New Member
Jun 29, 2018
12
3
Open the emulator in Visual Studio, then go to the Debug tab, and Start Debugging.
ugxjvy974h.png

Thanks, downloading and installing VS on the VPS now. I'll let you know what happens once I've debugged it





EDIT:

<?php
staffCheck();
Game::sso('client');
Game::homeRoom();
?>
<html>
</body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?= $config['hotelName'] ?> - Hotel</title>
<script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/flashclient.js"></script>
<script src="/templates/brain/client/js/flash_detect_min.js"></script>
<script src="/templates/brain/client/js/browse.js"></script>
<script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
<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>
<body>
<?php
if($hotel['onlineCounter'] == true)
{
?>
<script type="text/javascript">
$(document).ready(function(e) {
$.ajaxSetup({
cache:true
});
setInterval(function() {
$('#onlinecount').load('/onlinecountclient');
}, 8000);
$( "#onlinecount").click(function() {
$('#onlinecount').load('/onlinecountclient');
});
});
</script>
<div class="clientOnlineBox">
<div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
<img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
</div>
<?php
}
?>
<center>
<div id="client-ui">
<div class="client" id="client"></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=" " 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=" ">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=" ">Google Chrome</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Internet Explorer</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Microsoft Edge</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Firefox</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Apple Safari</a>
<?=$lang['nenableflashinfo']?>
</li>
</ul>
</div>
</div>
</div>
<script>
var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "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'] ?>");
Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
Client.addVariable("use.sso.ticket", "1");
Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
Client.addVariable("processlog.enabled", "0");
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) {
$("#disconnected, #hide-message,#client-support, #no-flash").show();
$("#client").hide();
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();
}
$("#disconnected").show().css('z-index', 0);
$("#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=" ";
}
});
</script>
</center>
</body>
</html>

@Zent
 
Last edited:

Users who are viewing this thread

Top