Hallo,
könnte mir mal jemand bezüglich des Clienten weiterhelfen.
Zeigt beim öffnen einfach nur ein schwarzes Bild an.
Soweit ich es noch in Erinnerung habe, habe ich alle Verlinkungen richtig gemacht und einzeln auch getestet.
Trotzdem keine Änderung.
Jemand da der sich das gerne mal anschauen könnte?
PHP: Ausschnitt vom Client.php
<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "<?php echo $this->filter($this->MyUser->username); ?>";
var habboId = <?php echo $this->filter($this->MyUser->id); ?>;
var facebookUser = false;
var habboReqPath = "";
var habboStaticFilePath = "http://127.0.0.1/web-gallery";
var habboImagerUrl = "http://127.0.0.1/gamedata/c_images/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "http://127.0.0.1/client";
window.name = "<?php echo $this->filter($this->MyUser->auth_ticket); ?>";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "<?php echo $this->filter($this->MyUser->auth_ticket); ?>"; }
</script>
</script>
<meta property="fb:app_id" content="163085011898" />
<noscript>
<meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
<script type="text/javascript">
<?php if (isset($_GET['id']) && $_GET['id'] == '2'){
MUS::SignOut($this->MyUser);
?>
alert("Du bist bereits eingeloggt.");
<?php } ?>
function DoResize()
{
var nHeight;
if (typeof window.innerHeight == 'undefined')
{
nHeight = document.body.clientHeight -200;
}
else
{
nHeight = window.innerHeight -200;
}
document.getElementById('flash').style.height = nHeight+'px';
}
function dcstr(coded) {
coded = decodeURIComponent(coded);
var uncoded = "";
var chr;
for (var i = coded.length - 1; i >= 0; i--) {
chr = coded.charAt(i);
uncoded += (chr >= "a" && chr <= "z" || chr >= "A" && chr <= "Z") ?
String.fromCharCode(65 + key.indexOf(chr) % 26) :
chr;
}
return uncoded;
}
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "127.0.0.1",
"connection.info.port" : "30000",
"site.url" : "<?php echo CMS_PATH; ?>",
"url.prefix" : "<?php echo CMS_PATH; ?>",
"client.reload.url" : "<?php echo CMS_PATH; ?>error",
"client.fatal.error.url" : "<?php echo CMS_PATH; ?>error",
"client.connection.failed.url" : "<?php echo CMS_PATH; ?>error",
"external.variables.txt" : "http://127.0.0.1/gamedata/vars.txt?<?php echo md5(rand(0,104)); ?>",
"external.texts.txt" : "http://127.0.0.1/gamedata/ext.txt?<?php echo md5(rand(0,104)); ?>",
"productdata.load.url" : "http://127.0.0.1/gamedata/productdata.txt?<?php echo md5(rand(0,104)); ?>",
"furnidata.load.url" : "http://127.0.0.1/gamedata/furnidata.txt?<?php echo md5(rand(0,104)); ?>",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $this->sso; ?>",
"processlog.enabled" : "1",
"account_id" : "1",
"client.starting" : "Xebbo wird geladenn",
"flash.client.url" : "http://127.0.0.1/gamedata/",
"user.hash" : "<?php echo $this->filter($this->MyUser->auth_ticket); ?>",
"has.identity" : "1",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://127.0.0.1/gamedata/",
"allowScriptAccess" : "always",
"menu" : "false",
"wmode" : "opaque"
};
FlashExternalInterface.signoutUrl = "<?php echo CMS_PATH; ?>account/logout?token=7856138f019f78052d2a34212ec6db60e393709e";
var clientUrl = "http://127.0.0.1/gamedata/Habbo.swf?<?php echo md5(rand(0,104)); ?>";
onreloadx(flashvars);
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/8/web-gallery/flash/expressInstall.swf", flashvars, params);
flashvars = null;
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) {}
}
window.onresize = DoResize;
function onreloadx(vars)
{
// reload hp
}
</script>
Alles anzeigen