JayC
Well-Known Member
Usually I am able to solve these problems but my cms has gotten a little messed up since I started editing... My Client was loading and disconnecting when I went to work and I figured i would fix it another time, here is my client.php:
Page-client.php:
What its doing:
Instead of going to /client it goes to /WWW/client (Its not doing the php) I have no idea why ;l
Code:
<?php
Header("Location: " . WWW . "/client");
?>
Page-client.php:
Code:
<?php
$getSettings = dbquery("SELECT * FROM users WHERE username = '" . USER_NAME . "'");
$userAccount = mysql_fetch_assoc($getSettings);
?>
<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" : "PROXY",
"connection.info.port" : "PROXY PORT",
"site.url" : "%site_url%",
"url.prefix" : "%site_url%",
"client.reload.url" : "%www%/client",
"client.fatal.error.url" : "%www%/client",
"client.connection.failed.url" : "%www%/client",
"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 clientSWF = "LINK/r63/habbo.swf";
var clientUrl = "/flashplayer/expressinstall.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 FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" />
<meta name="keywords" content="Aeon 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]-->
<link rel="stylesheet" href="/web-gallery/flash.css" type="text/css" />
<link rel="stylesheet" href="buttons.css" type="text/css" />
</head>
<div id="overlay"></div>
<div id="embed-topbar">
<div id="fullscreen-button">
<font size="5"><center><p><b> Hotel Quick Links Bar</b></p></center></font>
</div>
<div id="navi">
<a target="_blank" href="/values.php">Rare Values »</font></a>
<span>|</span>
<a target="_blank" href="/vault.php">Vault »</font></a>
<span>|</span>
<a target="_blank" href="/jobs.php">Trial Apps »</font></a>
</div>
<div id="right-buttons">
<a target="_blank" href="/development.php " class="new-button" target=""><b>Ranks »</b><i></i></a>
<a target="_blank" href="/vip " class="new-button" target=""><b>Shop »</b><i></i></a>
<a target="_blank" href="/articles " class="new-button" target=""><b>News »</b><i></i></a>
<a target="_blank" href="/me " class="new-button" target=""><b>%habboName% »</b><i></i></a>
</div>
</div>
<script type="text/javascript">
Embed.decorateNaviLinks();
Embed.decorateLogoLink();
</script>
<div id="overlay"></div>
<div id="client-ui" class="embed">
<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">
</div>
</div>
<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="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="%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="overlay"></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 ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
What its doing:
Instead of going to /client it goes to /WWW/client (Its not doing the php) I have no idea why ;l