Visualizzazione client ad utenti {ENTRA}
Ho creato un retro r63...a me funziona tutto, ma ai miei amici no, li ha fatti registrare, ma non va il clienti, li da errore (in poche parole viene la faccina che piange ...)
Emulatore: UberEmulatore
Csm: flash
Database: UberEmulatore
Modem: Vodafone
Page-client : rdpemulator r62
Uso : Hamachi2
CLASS.DB.MYSQL
?>
class MySQL
{
private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "MIA PASSWORD PHPMYADMIN";
private $database = "MIO DATABASE PHPMYADMIN";
private $link;
public function MySQL($host, $user, $pass, $db)
{
$this->connected = false;
$this->hostname = $host;
$this->username = $user;
$this->password = $pass;
$this->database = $db;
}
public function IsConnected()
{
if ($this->connected)
{
return true;
}
return false;
}
public function Connect()
{
$this->link = mysql_connect($this->hostname, $this->username, $this->password) or $this->error(mysql_error());
mysql_select_db($this->database, $this->link) or $this->error(mysql_error());
$this->connected = true;
}
public function Disconnect()
{
if($this->connected)
{
@mYsQL_close($this->link) or $this->error("could not close conn");
$this->connected = false;
}
}
public function DoQuery($query)
{
$resultset = @mYsQL_query($query, $this->link) or $this->error(mysql_error());
return $resultset;
}
public function Evaluate($resultset)
{
return @mYsQL_result($resultset, 0);
}
public function Error($errorString)
{
global $core;
$core->systemError('Database Error', $errorString);
}
public function __destruct()
{
$this->disconnect();
}
}
?>
PAGE-CIENT
<body id="client" class="flashclient">
<script type="text/javascript">
var habboDefaultClientPopupUrl = "%www%/client";
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=%www%/client/nojs" />
</noscript>
<script type="text/javascript">
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" : "%www%",
"url.prefix" : "%www%",
"client.reload.url" : "http://%www%/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "http://%www%/flash_client_error",
"client.connection.failed.url" : "http://%www%/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://habblogradio.netsons.org/r63/gamedata/external_variables.txt",
"external.texts.txt" : "http://habblogradio.netsons.org/r63/gamedata/external_flash_texts_it.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendi Perfavore! ~ rDp Sta Caricando",
"flash.client.url" : "http://habblogradio.netsons.org/r63/",
"user.hash" : "3228904846f0d252a0c89a5462763c840352e021",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://habblogradio.netsons.org/r63/gordon/RELEASE63-30321-30315-201011261026_5c1cea64af7b6d2573b0d9936b1fa1ad/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "http://habblogradio.netsons.org/r63/gordon/RELEASE63-30321-30315-201011261026_5c1cea64af7b6d2573b0d9936b1fa1ad/Habbo.swf";
try {
if (swfobject.getFlashPlayerVersion().major <= 9) {
clientUrl = "http://habblogradio.netsons.org/r63/gordon/RELEASE63-30321-30315-201011261026_5c1cea64af7b6d2573b0d9936b1fa1ad/Habbo10.swf";
}
} catch(e) {}
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/3/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
<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="cbbclearfix">
<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="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="http://images.habbo.com/habboweb/45_0061af58e257a7c6b931c91f771b4483/2/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="content"class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
71 users online now!
</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");
</script>
</body>
</html>
INF.CONFIG
$config['Site']['www'] = "http://MIO IP HAMACHI";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "MIA PASSWORD PHPMYADMIN";
$config['MySQL']['database'] = "NOME DATABASE PHPMYADMIN";
$config['MUS']['enabled'] = true;
$config['MUS']['ip'] = "MIO IP HAMACHI";
$config['MUS']['port'] = 30001;
?>
CONFIG EMULATORE
## System Configuration File
## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=MIA PASSWORD PHPMYADMIN
db.name=MIA PASSWORD PHPMYADMIN
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=1500
## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=5000
## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30001
mus.tcp.allowedaddr=127.0.0.1
## Client configuration
client.ping.enabled=1
client.ping.interval=30000
Ho creato un retro r63...a me funziona tutto, ma ai miei amici no, li ha fatti registrare, ma non va il clienti, li da errore (in poche parole viene la faccina che piange ...)
Emulatore: UberEmulatore
Csm: flash
Database: UberEmulatore
Modem: Vodafone
Page-client : rdpemulator r62
Uso : Hamachi2
CLASS.DB.MYSQL
?>
class MySQL
{
private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "MIA PASSWORD PHPMYADMIN";
private $database = "MIO DATABASE PHPMYADMIN";
private $link;
public function MySQL($host, $user, $pass, $db)
{
$this->connected = false;
$this->hostname = $host;
$this->username = $user;
$this->password = $pass;
$this->database = $db;
}
public function IsConnected()
{
if ($this->connected)
{
return true;
}
return false;
}
public function Connect()
{
$this->link = mysql_connect($this->hostname, $this->username, $this->password) or $this->error(mysql_error());
mysql_select_db($this->database, $this->link) or $this->error(mysql_error());
$this->connected = true;
}
public function Disconnect()
{
if($this->connected)
{
@mYsQL_close($this->link) or $this->error("could not close conn");
$this->connected = false;
}
}
public function DoQuery($query)
{
$resultset = @mYsQL_query($query, $this->link) or $this->error(mysql_error());
return $resultset;
}
public function Evaluate($resultset)
{
return @mYsQL_result($resultset, 0);
}
public function Error($errorString)
{
global $core;
$core->systemError('Database Error', $errorString);
}
public function __destruct()
{
$this->disconnect();
}
}
?>
PAGE-CIENT
<body id="client" class="flashclient">
<script type="text/javascript">
var habboDefaultClientPopupUrl = "%www%/client";
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=%www%/client/nojs" />
</noscript>
<script type="text/javascript">
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" : "%www%",
"url.prefix" : "%www%",
"client.reload.url" : "http://%www%/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "http://%www%/flash_client_error",
"client.connection.failed.url" : "http://%www%/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://habblogradio.netsons.org/r63/gamedata/external_variables.txt",
"external.texts.txt" : "http://habblogradio.netsons.org/r63/gamedata/external_flash_texts_it.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendi Perfavore! ~ rDp Sta Caricando",
"flash.client.url" : "http://habblogradio.netsons.org/r63/",
"user.hash" : "3228904846f0d252a0c89a5462763c840352e021",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://habblogradio.netsons.org/r63/gordon/RELEASE63-30321-30315-201011261026_5c1cea64af7b6d2573b0d9936b1fa1ad/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "http://habblogradio.netsons.org/r63/gordon/RELEASE63-30321-30315-201011261026_5c1cea64af7b6d2573b0d9936b1fa1ad/Habbo.swf";
try {
if (swfobject.getFlashPlayerVersion().major <= 9) {
clientUrl = "http://habblogradio.netsons.org/r63/gordon/RELEASE63-30321-30315-201011261026_5c1cea64af7b6d2573b0d9936b1fa1ad/Habbo10.swf";
}
} catch(e) {}
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/3/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
<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="cbbclearfix">
<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="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="http://images.habbo.com/habboweb/45_0061af58e257a7c6b931c91f771b4483/2/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="content"class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
71 users online now!
</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");
</script>
</body>
</html>
INF.CONFIG
$config['Site']['www'] = "http://MIO IP HAMACHI";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "MIA PASSWORD PHPMYADMIN";
$config['MySQL']['database'] = "NOME DATABASE PHPMYADMIN";
$config['MUS']['enabled'] = true;
$config['MUS']['ip'] = "MIO IP HAMACHI";
$config['MUS']['port'] = 30001;
?>
CONFIG EMULATORE
## System Configuration File
## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=MIA PASSWORD PHPMYADMIN
db.name=MIA PASSWORD PHPMYADMIN
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=1500
## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=5000
## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30001
mus.tcp.allowedaddr=127.0.0.1
## Client configuration
client.ping.enabled=1
client.ping.interval=30000
Ultima modifica: