Hi,
i have a big problem with client and namely the index.php.
I don't know how to change it so it will work
I have the old i think:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('../global.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<?php
function rndchar()
{
$rnd = rand(65, 122);
if(96 >= $rnd && $rnd >= 91)
{
$rnd = 95;
}
return chr($rnd);
}
$str = "";//rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar();
$ticket = "ST-".$str.rand(10000, 99999).$str."-".rand(100000, 999999).rand(100000, 999999);
$username = $_SESSION['username'];
if(@$_GET['ticket'] && @$_GET['username'] && $users->UserPermission('hk_ext_login', $_SESSION['username']))
{
$username = $_GET['username'];
$ticket = $_GET['ticket'];
}
$query = mysql_query("UPDATE users SET auth_ticket = '$ticket' WHERE username = '$username'");
$query = mysql_query("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '$username'");
?>
<html xmlns="
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $sitename." - Client"; ?></title>
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
var ad_keywords = "";
document.habboLoggedIn = true;
var habboName = "<?php echo $_SESSION['username']; ?>";
var habboReqPath = "<?php echo $core->CmsSetting('cms_url'); ?>";
var habboStaticFilePath = "
var habboImagerUrl = "
var habboPartner = "";
var habboDefaultClientPopupUrl = "<?php echo $core->CmsSetting('cms_url'); ?>/client";
window.name = "ClientWndw";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
</script>
<link rel="stylesheet" href="
<script src="
<script src="
<script src="
<script src="
<link rel="stylesheet" href="
<script src="
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = false;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "1",
"connection.info.host" : "<?php echo $core->CmsSetting('client_ip'); ?>",
"connection.info.port" : "<?php echo $core->CmsSetting('client_port'); ?>",
"site.url" : "<?php echo $core->CmsSetting('cms_url'); ?>",
"url.prefix" : "<?php echo $core->CmsSetting('cms_url'); ?>",
"client.reload.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client",
"client.fatal.error.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?flash_client_error",
"client.connection.failed.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?client_connection_failed",
"external.variables.txt" : "<?php echo $core->CmsSetting('client_variables'); ?>",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticket ?>",
"processlog.enabled" : "0",
"account_id" : "1",
"client.starting" : "Please wait while Habbza Hotel is loading",
"flash.client.url" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "0",
"flash.client.origin" : "popup",
"token" : "<?php echo $ticket ?>",
"logout.disconnect.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&origin=%origin%",
"logout.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&reason=%reason%&origin=%origin%"
};
var params = {
"base" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
//no cach!!
var clientUrl = "<?php echo $core->CmsSetting('client_habbo_swf'); ?>";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "
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>
<!--[if IE 8]>
<link rel="stylesheet" href="
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="
<script src="
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<![endif]-->
</head>
<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="
<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">Por favor, actualiza tu Flash Player a la ?ltima versi?n</h2>
<div class="box-content">
<p>Puedes instalar y descargar Adobe Flash Player aqu?: <a href="
<p><a href="
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<script type="text/javascript">
HabboView.run();
</script>
</body>
</html>
PLEASE HELP ME!
i have a big problem with client and namely the index.php.
I don't know how to change it so it will work
I have the old i think:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('../global.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
You must be registered for see links
"><?php
function rndchar()
{
$rnd = rand(65, 122);
if(96 >= $rnd && $rnd >= 91)
{
$rnd = 95;
}
return chr($rnd);
}
$str = "";//rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar();
$ticket = "ST-".$str.rand(10000, 99999).$str."-".rand(100000, 999999).rand(100000, 999999);
$username = $_SESSION['username'];
if(@$_GET['ticket'] && @$_GET['username'] && $users->UserPermission('hk_ext_login', $_SESSION['username']))
{
$username = $_GET['username'];
$ticket = $_GET['ticket'];
}
$query = mysql_query("UPDATE users SET auth_ticket = '$ticket' WHERE username = '$username'");
$query = mysql_query("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '$username'");
?>
<html xmlns="
You must be registered for see links
" xml:lang="en" lang="en" xmlnsg="
You must be registered for see links
" xmlns:fb="
You must be registered for see links
"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $sitename." - Client"; ?></title>
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
var ad_keywords = "";
document.habboLoggedIn = true;
var habboName = "<?php echo $_SESSION['username']; ?>";
var habboReqPath = "<?php echo $core->CmsSetting('cms_url'); ?>";
var habboStaticFilePath = "
You must be registered for see links
";var habboImagerUrl = "
You must be registered for see links
";var habboPartner = "";
var habboDefaultClientPopupUrl = "<?php echo $core->CmsSetting('cms_url'); ?>/client";
window.name = "ClientWndw";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
</script>
<link rel="stylesheet" href="
You must be registered for see links
" type="text/css" /><script src="
You must be registered for see links
" type="text/javascript"></script><script src="
You must be registered for see links
" type="text/javascript"></script><script src="
You must be registered for see links
" type="text/javascript"></script><script src="
You must be registered for see links
" type="text/javascript"></script><link rel="stylesheet" href="
You must be registered for see links
" type="text/css" /><script src="
You must be registered for see links
" type="text/javascript"></script><script type="text/javascript">
FlashExternalInterface.loginLogEnabled = false;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "1",
"connection.info.host" : "<?php echo $core->CmsSetting('client_ip'); ?>",
"connection.info.port" : "<?php echo $core->CmsSetting('client_port'); ?>",
"site.url" : "<?php echo $core->CmsSetting('cms_url'); ?>",
"url.prefix" : "<?php echo $core->CmsSetting('cms_url'); ?>",
"client.reload.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client",
"client.fatal.error.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?flash_client_error",
"client.connection.failed.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?client_connection_failed",
"external.variables.txt" : "<?php echo $core->CmsSetting('client_variables'); ?>",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticket ?>",
"processlog.enabled" : "0",
"account_id" : "1",
"client.starting" : "Please wait while Habbza Hotel is loading",
"flash.client.url" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "0",
"flash.client.origin" : "popup",
"token" : "<?php echo $ticket ?>",
"logout.disconnect.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&origin=%origin%",
"logout.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&reason=%reason%&origin=%origin%"
};
var params = {
"base" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
//no cach!!
var clientUrl = "<?php echo $core->CmsSetting('client_habbo_swf'); ?>";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "
You must be registered for see links
", 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>
<!--[if IE 8]>
<link rel="stylesheet" href="
You must be registered for see links
" type="text/css" /><![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="
You must be registered for see links
" type="text/css" /><![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="
You must be registered for see links
" type="text/css" /><script src="
You must be registered for see links
" type="text/javascript"></script><script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<![endif]-->
</head>
<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="
You must be registered for see links
" 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">Por favor, actualiza tu Flash Player a la ?ltima versi?n</h2>
<div class="box-content">
<p>Puedes instalar y descargar Adobe Flash Player aqu?: <a href="
You must be registered for see links
">Instala Flash player</a>. M?s instrucciones para su instalaci?n aqu?: <a href="
You must be registered for see links
">M?s informaci?n</a></p><p><a href="
You must be registered for see links
"><img src="
You must be registered for see links
" alt="Get Adobe Flash player" /></a></p></div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<script type="text/javascript">
HabboView.run();
</script>
</body>
</html>
PLEASE HELP ME!