White Client

Woiah

Member
Mar 5, 2012
234
8
Help me with the Web-Build im a Beginner

<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('../global.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " ">

<?php
$rand1 = rand(100000, 999999);
$rand2 = rand(10000, 99999);
$rand3 = rand(10000, 99999);
$rand4 = rand(10000, 99999);
$rand5 = rand(10000, 99999);
$rand6 = rand(1, 9);
$ticket = "ST-".$rand1."-".$rand2.$rand3."-".$rand4.$rand5."-otaku-".$rand6;
$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=" " xml:lang="en" lang="en" xmlns:eek:g=" " xmlns:fb=" ">
<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="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href=" " />
<script src=" " type="text/javascript"></script>
<script src=" " type="text/javascript"></script>
<script src=" " type="text/javascript"></script>
<script src=" " type="text/javascript"></script>
<link rel="stylesheet" href=" " type="text/css" />
<link rel="stylesheet" href=" " type="text/css" />
<link rel="stylesheet" href=" " type="text/css" />
<link rel="stylesheet" href=" " type="text/css" />
<link rel="stylesheet" href=" " type="text/css" />
<link type="text/css" rel="stylesheet" href="../Public/Styles/<?php echo $currentstyle ?>/CSS/client.css" />

<noscript>
<meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>

<link rel="stylesheet" href=" " type="text/css" />
<link rel="stylesheet" href="/Public/Styles/Default/CSS/client.css" type="text/css" />
<script src=" " 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'); ?>/index.php",
"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'); ?>",
"external.texts.txt" : "<?php echo $core->CmsSetting('client_texts'); ?>",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $ticket ?>",
"processlog.enabled" : "0",
"account_id" : "1",
"client.starting" : "Teen Hotel sta caricando!.",
"flash.client.url" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "0",
"flash.client.origin" : "popup",
"token" : "<?php echo $ticket ?>"
};
var params = {
"base" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",
"allowScriptAccess" : "always",
"menu" : "false"
};

if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}

var clientUrl = "<?php echo $core->CmsSetting('client_habbo_swf'); ?>";

swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", " ", 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>

</head>

<body id="client" class="flashclient">

<div id="overlay"></div>
<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=" ">
Install flash player</a>. More instructions for installation can be
found here: <a href=" ">
More information</a></p>
<p><a href=" "><img src=" " 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>

</body>
</html>
 

mcjefix

Member
May 4, 2012
56
0
Guys it's working now! I tried a couple of things and you all helped me alot! Thank you very much! But now I have a question about the pets but I created a thread about it.
 

FeyChal

Thehabbos.org/beta.php
Apr 28, 2012
135
43
Guys it's working now! I tried a couple of things and you all helped me alot! Thank you very much! But now I have a question about the pets but I created a thread about it.


Are mine working? if it's working you could give me a "LIKE" and a few credits if you post it in a new thread :)
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
SUGGESTION !
Find this :


PHP:
$_CONFIG['hotel']['external_vars'] = 'http://localhost/gordon/external_variables.txt'; //URL to your external vars
 
$_CONFIG['hotel']['external_texts'] = 'http://localhost/gordon/external_flash_texts.txt'; //URL to your external texts
 
$_CONFIG['hotel']['product_data'] = 'http://localhost/gordon/productdata.txt'; //URL to your productdata
 
$_CONFIG['hotel']['furni_data'] = 'http://localhost/gordon/furnidata.txt'; //URL to your furnidata
 
$_CONFIG['hotel']['swf_folder'] = 'http://localhost/gordon/swf'; //URL to your SWF folder(does not end with a '/')


Replace it into this :

PHP:
$_CONFIG['hotel']['external_vars'] = 'http://localhost/r63/external_vars.txt'; //URL to your external vars
 
$_CONFIG['hotel']['external_texts'] = 'http://localhost/r63/external_texts.txt'; //URL to your external texts
 
$_CONFIG['hotel']['product_data'] = 'http://localhost/r63/productdata.txt'; //URL to your productdata
 
$_CONFIG['hotel']['furni_data'] = 'http://localhost/r63/furnidata.txt'; //URL to your furnidata
 
$_CONFIG['hotel']['swf_folder'] = 'http://localhost/r63'; //URL to your SWF folder(does not end with a '/')

You can replace "LOCALHOST" with your domain name e.g : yourdomain.com when you get your self a domain.

Try this its free : no-ip.com

R63 Pack (Recommed Using From Kidramboodupstep) :

Don't worry it works 100%, just need a little bit of changing at external_vars and upload the SQL



If you got error with your emu after import my sql, just execute this sql in your database

PHP:
ALTER TABLE `catalog_pages` ADD `page_link_description` TEXT NOT NULL;
ALTER TABLE `catalog_pages` ADD `page_link_pagename` TEXT NOT NULL;
 
ALTER TABLE `catalog_items`
ADD COLUMN `vip` enum('0','1','2') NOT NULL DEFAULT '0';

- Cheers :p
Not your domain name but your IP. You'll get in trouble if you use your domain name, 'cause the client will not work and it will just disconnect you.
 

Users who are viewing this thread

Top