Junior Spellweaver
- Joined
- May 30, 2007
- Messages
- 137
- Reaction score
- 102
With this client Flash should work ^^, Just change your port ;>
Code:
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 PHPRetro. All rights reserved.
|| # http://www.horro.co.uk
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("client.hotel");
if(isset($_SESSION['reauthenticate']) && $_SESSION['reauthenticate'] == "true"){
$_SESSION['page'] = $_SERVER["REQUEST_URI"];
header("Location: ".PATH."/account/reauthenticate"); exit;
}else{
$user = new HoloUser($user->name,$user->password,true);
$_SESSION['user'] = $user;
}
require_once('./templates/flashclient_header.php');
$forwardid = $input->HoloText($_GET['forwardId']);
$roomid = $input->HoloText($_GET['roomId']);
$shortcut = $_GET['shortcut'];
switch($shortcut){
case "roomomatic": $shortcut = "1"; break;
default: unset($_GET['shortcut']); break;
}
?>
<noscript>
<meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/habboclient.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/habboflashclient.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "0",
"client.notify.cross.domain" : "1",
"connection.info.host" : "<?php echo $settings->find("hotel_ip"); ?>",
"connection.info.port" : "90",
"site.url" : "<?php echo PATH; ?>",
"url.prefix" : "<?php echo PATH; ?>",
"client.reload.url" : "<?php echo PATH; ?>/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "<?php echo PATH; ?>/flash_client_error",
"client.connection.failed.url" : "<?php echo PATH; ?>/client_connection_failed",
"external.hash" : "0b9314fa90995f80f99f5e2b6fae96d49d396675",
"external.variables.txt" : "http://hotel-uk.habbo.com/gamedata/external?id=external_variables",
"external.texts.txt" : "http://hotel-uk.habbo.com/gamedata/external?id=external_flash_texts",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $user->user("ticket_sso"); ?>",
"processlog.enabled" : "1",
"account_id" : "<?php echo $user->user("id"); ?>",
"client.starting" : "<?php echo SHORTNAME; ?> is starting up...",
"flash.client.url" : "http://images.habbo.com/dcr/r47_none_74f18727eeee7d2cd329f9c7c9078061/",
"user.hash" : "27872364a5bfbf87c3cd0cc7400f70ab06ae88ec",
"has.identity" : "1",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://images.habbo.com/gordon/RELEASE47-25512-25511-201003200122_03b5083c12d1871c6522413cea00a250/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "http://images.habbo.com/gordon/RELEASE47-25512-25511-201003200122_03b5083c12d1871c6522413cea00a250/Habbo10.swf";
try {
if (swfobject.getFlashPlayerVersion().major <= 9) {
clientUrl = "http://images.habbo.com/gordon/RELEASE47-25512-25511-201003200122_03b5083c12d1871c6522413cea00a250/Habbo.swf";
}
} catch(e) {}
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
<!--[if IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/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="47-BUILD61 - 20.03.2010 10:21 - com" />
</head>
<body id="client" class="flashclient">
<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 install Adobe Flash Player.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/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">
<?php echo GetOnlineCount()." ".$lang->loc['members.online']; ?>
</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");
</script>
<?php
require_once('./templates/client_footer.php');
?>
Last edited: