When I load my client I get it loaded to about 70% and then it crashes and says flash client error. Does anyone know why this is? I have a feeling it's because of the flash client in my client.php file but I don't know what to update it to. Here is my client.php and my page-client.tpl
<noscript>
<meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var habboReqPath = "%www%";
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "1",
"connection.info.host" : "%connection_info_host%",
"connection.info.port" : "%connection_info_port%",
"site.url" : "%site_url%",
"url.prefix" : "%site_url%",
"client.reload.url" : "%client_reload_url%",
"client.fatal.error.url" : "%client_fatal_error_url%",
"client.connection.failed.url" : "%client_fatal_error_url%",
"external.variables.txt" : "%external_variables_txt%",
"external.texts.txt" : "%external_texts_txt%",
"productdata.load.url" : "%productdata_load_url%",
"furnidata.load.url" : "%furnidata_load_url%",
"use.sso.ticket" : "1",
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "1",
"account_id" : "19927505",
"client.starting" : "%client_starting%",
"flash.client.url" : "%www%/client",
"user.hash" : "<?php echo sha1(USER_ID); ?>",
"flash.client.origin" : "popup",
};
var params = {
"base" : "%swf_base_dir%",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "%habbo_swf%";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "%web_gallery%/flash/expressInstall.swf", flashvars, params);
window.onbeforeunload = unloading;
function unloading() {
var clientObject;
if (navigator.appName.indexOf("Microsoft") != -1) {
clientObject = window["flash-container"];
} else {
clientObject = document["flash-container"];
}
try {
clientObject.unloading();
} catch (e) {}
}
</script>
<meta name="description" content="Check into the world’s largest virtual hotel for F! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" />
<meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />
<!--[if IE 8]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie6.css" type="text/css" />
<script src="%web_gallery%/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="63-BUILD36 - 16.11.2010 11:51 - com" />
</head>
<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="%web_gallery%/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">
<div id="flash-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">Please update your Flash Player to the latest version.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="You must be registered for see links">Install flash player</a>. More instructions for installation can be found here: <a href="You must be registered for see links">More information</a></p>
<p><a href="You must be registered for see links"><img src="%web_gallery%/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
<noscript>
<div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
<p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
%hotel_status%
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
if (window.opener && window.opener != window && typeof window.opener.location.href != "undefined") {
window.opener.location.replace(window.opener.location.href);
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>
<script type="text/javascript">
HabboView.run();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15697942-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'You must be registered for see links' : 'You must be registered for see links') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
<?php
/*
|
. .|---.,---.,---.
| || ||---'| UberCMS 2.0
`---'`---'`---'`
UberCMS
Coded originally by Meth0d (2010-2011)
Continued by Jonty (2011-now)
Build 2.0.0 SS, Public
*/
require_once "global.php";
if (!LOGGED_IN)
{
header("Location: " . WWW. "/");
exit;
}
if ($voting['thehabbos_enabled'] == true) {
if (!isset($_GET["novote"])) {
header("Location:You must be registered for see links" . $voting['thehabbos_username'] . "&api=" . WWW . "/client?novote");
}
}
if($site['enable_pincodes'] == true && $users->GetUserVar(USER_ID, 'rank') >= $site['pincode_minrank']) {
if(!isset($_SESSION["staff_PassAuth"])) {
header ("Location: " . WWW . "/client_denied");
}
}
// **************************************************************************************************************
// **************************************************************************************************************
$users->CheckSSO(USER_ID);
$userTicket = $users->GetUserVar(USER_ID, 'auth_ticket');
if($server['butterfly_sso'] == true) {
$checkExists = dbquery("SELECT userid FROM user_tickets WHERE userid = '" . USER_ID . "'");
if(mysql_num_rows($checkExists)) {
dbquery("UPDATE user_tickets SET sessionticket = '" . $userTicket . "', ipaddress = '" . $_SERVER["REMOTE_ADDR"] . "' WHERE userid = '" . USER_ID . "'");
}
else {
dbquery("INSERT INTO user_tickets (userid,sessionticket,ipaddress) VALUES ('" . USER_ID . "', '" . $userTicket . "', '" . $_SERVER["REMOTE_ADDR"] . "')");
}
}
else if($server['phoenix_secure_sessions'] == true) {
dbquery("UPDATE `users` SET `auth_ticket` = '" . $users->GetUserVar(USER_ID, "auth_ticket") . "' WHERE id = '" . USER_ID . "'");
}
$forwardType = 0;
$forwardId = 0;
// Due to an issue with most servers, tags have been disabled in the CMS by default.
if (mysql_num_rows(dbquery("SELECT * FROM user_tags WHERE user_id = '" . USER_ID . "' LIMIT 1"))) {
dbquery("DELETE FROM user_tags WHERE user_id = '" . USER_ID . "'");
}
if ($users->getUserVar(USER_ID, 'newbie_status') == "2") {
// Run POST-REGISTRATION checks
dbquery("UPDATE `users` SET
`motto` = '" . $server['default_motto'] . "',
`credits` = '" . $server['default_credits'] . "',
`activity_points` = '" . $server['default_pixels'] . "',
`look` = '" . $server['default_look'] . "',
`home_room` = '" . $server['default_room'] . "',
`rank` = '" . $server['default_rank'] . "',
`newbie_status` = '3'
WHERE `id` = '" . USER_ID . "'");
}
dbquery("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '".USER_NAME."'");
$tpl->Init();
$client = new Template('page-client');
$client->SetParam('page_title', ' ');
$client->SetParam('sso_ticket', $users->GetUserVar(USER_ID, 'auth_ticket', false));
$client->SetParam('flash_base', 'You must be registered for see links
$client->SetParam('flash_client_url', 'You must be registered for see links
$client->SetParam('hotel_status', $core->GetUsersOnline() . ' users online now!');
$client->SetParam('forwardType', $forwardType);
$client->SetParam('forwardId', $forwardId);
$tpl->AddIncludeSet('default');
$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/habboclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/habboflashclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/habboflashclient.js'));
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-bottom');
if (isset($_GET['forceTicket']) && $users->HasFuse(USER_ID, 'fuse_admin'))
{
$client->SetParam('sso_ticket', $_GET['forceTicket']);
}
$tpl->AddTemplate($client);
$tpl->Output();
?>