Hallo,
habe seid neuem die HabboNZ cms,
aber leider habe ich einen Fehler im Client.
Ich habe wohl irgendwas falsch eingestellt.
Beschreibung meines Problems:
Wenn ich in den Client rein gehe lädt alles Taler usw. und nach so 2 Sekunden im CLient werde ich zur Homepage weitergeleitet.
Meine Client.php:
Spoiler anzeigen
<?php
require("./inc/core.php");
require("./inc/session.php");
require_once('./templ/cheader.php');
if($myrow['rank'] > 5) { mysql_query("UPDATE users SET vip = '1' WHERE username = '".$username."'"); } else { mysql_query("UPDATE users SET vip = '0' WHERE username = '".$username."'"); }
$mybadge = mysql_fetch_assoc(mysql_query("SELECT * FROM user_badges WHERE user_id = '".$myrow['id']."' AND badge_id = 'WELC' LIMIT 1"));
if($mybadge['badge_id'] !== 'WELC') { mysql_query("INSERT INTO user_badges SET user_id = '".$myrow['id']."', badge_id = 'WELC', badge_slot = '1'"); }
if($mybadge['badge_id'] !== 'VIP') { mysql_query("INSERT INTO user_badges SET user_id = '".$myrow['id']."', badge_id = 'VIP', badge_slot = '2'"); }
?>
<title>Hebbo: Hotel</title>
<script type="text/javascript">
function DoResizex() {
var nHeight;
if (typeof window.innerHeight == 'undefined')
{ nHeight = document.body.clientHeight -40; }
else { nHeight = window.innerHeight -40; }
document.getElementById('flash').style.height = nHeight+'px';}
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" : "DieRichtige IP",
"connection.info.port" : "30048",
"site.url" : "<?php echo $path; ?>",
"url.prefix" : "<?php echo $path; ?>",
"client.reload.url" : "<?php echo $path; ?>/client",
"client.fatal.error.url" : "<?php echo $path; ?>/clientutils",
"client.connection.failed.url" : "<?php echo $path; ?>/clientutils",
"external.variables.txt" : "<?php echo $path; ?>/client/external_variables.txt",
"external.texts.txt" : "<?php echo $path; ?>/client/external_flash_texts.txt",
"productdata.load.url" : "<?php echo $path; ?>/client/productdata.txt",
"furnidata.load.url" : "<?php echo $path; ?>/client/furnidata.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticketrow['auth_ticket']; ?>",
"processlog.enabled" : "1",
"account_id" : "1",
"client.starting" : "Hallo <?php echo $name?>, der Client wird geladen.",
"flash.client.url" : "<?php echo $path; ?>/client/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "1",
"flash.client.origin" : "popup"
};
var params = { "base" : "<?php echo $path; ?>/client/", "allowScriptAccess" : "always", "menu" : "false" };
if (!(HabbletLoader.needsFlashKbWorkaround())) {params["wmode"] = "opaque";}
FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/account/logout?token=<?php echo sha1($myrow['password']); ?>";
var clientUrl = "<?php echo $path; ?>/client/habbo2.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", null, flashvars, params, null, FlashExternalInterface.embedSwfCallback);
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 = function() {
HabboClient.storeWindowSize();
}.debounce(0.5);
new Ajax.Request(habboReqPath + "/crossdomain.xml", {
method: 'get',
requestHeaders: {'Cache-Control': 'no-cache'}});
window.onload = DoResizex;
</script>
</head>
<body onload="init();" id="client" class="flashclient" style="overflow: hidden;">
<div id="overlay"></div>
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">
<div id="flash-container">
<script type="text/javascript">
$('content').show();
</script>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div id="onlinewrapper">
<?php echo "".$onlinecount." Hebbos online"; ?>
</div>
<?php include('./templ/clientmenu.php'); ?>
</div>
</body>
</html>
Das habe ich bearbeitet:
Spoiler anzeigen
"connection.info.host" : "DieRichtige IP",
"connection.info.port" : "30048",
Ich bedanke mich für jede Antwort.
MfG, Mitsch