Problema Problema con il Client

giacomazzi

Utente Medio
Autore del topic
7 Ottobre 2010
100
0
Miglior risposta
0
salve ragazzi ho un problema con la page client... il client all'inizio carica ma poi esce client error... ora vi posto le configurazioni e mi dite se ce qualcosa di sbagliato...

class.db.mysql:

<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
|
Perfavore, Entra oppure Registrati per vedere i Link!

| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

class MySQL
{
private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "gabriele95";
private $database = "havana_db";
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();
}
}

?>

inc.config:

<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
|
Perfavore, Entra oppure Registrati per vedere i Link!

| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

$config['Site']['www'] = "http://5.99.179.55";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";

$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "gabriele95";
$config['MySQL']['database'] = "havana_db";

$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "5.99.179.55";
$config['MUS']['port'] = "30000";

?>

page client:

<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.star t");

if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "5.99.179.55",
"connection.info.port" : "20",
"site.url" : "%www%",
"url.prefix" : "%www%",
"client.reload.url" : "%www%/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "%www%/flash_client_error",
"client.connection.failed.url" : "%www%/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://dangerswf.netsons.org/r63/gamedata/external_variablesnew.txt",
"external.texts.txt" : "http://dangerswf.netsons.org/r63/gamedata/Text.it.txt",
"productdata.load.url" : "http://dangerswf.netsons.org/r63/gamedata/productdata.txt",
"furnidata.load.url" : "http://dangerswf.netsons.org/r63/gamedata/furnidata.txt",
"use.sso.ticket" : "1",
<?php

if ($forwardType > 0)
{
echo ' "forward.type" : "' . $forwardType . '",' . LB;
echo ' "forward.id" : "' . $forwardId . '",' . LB;
}

?>
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendi %habboname%, l'Hotel sta caricando",
"flash.client.url" : "http://dangerswf.netsons.org/r63/dcr/hof_furni/",
"user.hash" : "",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://dangerswf.netsons.org/r63/gordon/r63/",
"allowScriptAccess" : "always",
"menu" : "false"
};

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

FlashExternalInterface.signoutUrl = "%www%/account/logout";


var clientUrl = "http://dangerswf.netsons.org/r63/gordon/r63/Habbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.alexgroup27.com.ve/habboweb/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>

<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="http://images.habbo.com/habboweb/%web_build%/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">Por favor, instale o Adobe Flash Player.</h2>
<div class="box-content">
<p>Você pode instalar e baixar o Flash Player aqui: <a href="http://get.adobe.com/flashplayer/">Instalar Flash player</a>. Mais instruções para a instação aqui:: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">Mais informações</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/%web_build%/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>Se você não for redirecionado automaticamente,<a href="/client/nojs">clique aqui</a></p>
</div>
</noscript>
</div>
</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");
</script>


</body>
</html>

uber-config:

## uberEmulator System Configuration File
## Must be edited for the server to work

## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=gabriele95
db.name=havana_db
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=30

## Game TCP/IP Configuration
game.tcp.bindip=5.99.179.55
game.tcp.port=21
game.tcp.conlimit=500

## MUS TCP/IP Configuration
mus.tcp.bindip=5.99.179.55
mus.tcp.port=20
mus.tcp.allowedaddr=5.99.179.55

## Client configuration
client.ping.enabled=0
client.ping.interval=30000

grazie in anticipo per la vostra collaborazione..
 
Ultima modifica:
Riferimento: anora problemi con il client O.O help per favore

semplice i client è bloccato e non funzionante usa questo:
HTML:
Perfavore, Entra oppure Registrati per vedere i codici!
 
Riferimento: anora problemi con il client O.O help per favore

niente da fare non va lo stesso ottimoteo :emoji_slight_frown: :emoji_slight_frown: ... boh avete altri consigli??
 
Riferimento: anora problemi con il client O.O help per favore

Ovvio ;) come al solito. usa questo client.php (che devi metterlo al posto del client.php vecchio usando il mio page client)
HTML:
Perfavore, Entra oppure Registrati per vedere i codici!
 
Riferimento: anora problemi con il client O.O help per favore

mah ad info.port devo lasciare quella ?
 
Riferimento: anora problemi con il client O.O help per favore

no quella deve essere uguale alla porta del server ma credo sia uguale controlla
 
Riferimento: anora problemi con il client O.O help per favore

proviamo :emoji_slight_smile: :emoji_slight_smile: speriamo bene...
--------------- AGGIUNTA AL POST ---------------
niente da fare ho messo il tuo client php e lasciato la tua client page ma non va ... forse sbaglio qualcosa ... per esempio l'info port deve essere cambiata??
--------------- AGGIUNTA AL POST ---------------
io alla porta del server 20 ho messo...
--------------- AGGIUNTA AL POST ---------------
havana_hotel
pass 123 ... se vuoi entra e vedi un po bohh xD
 
Ultima modifica:
Riferimento: anora problemi con il client O.O help per favore

Segnalo per titolo non idoneo, non scrivete "help, aiuto, come si fa, ecc.". Dovete scrivere in poche parole il vostro problema. ^^
 
Ultima modifica:
Riferimento: anora problemi con il client O.O help per favore

lo scritto il mio problema :emoji_smiley: solo che no se risolve :emoji_smiley: vabbe potete chiudere mi arrendo.
 
Riferimento: Problema con il Client

Nell' inc.config. $config['MUS']['port'] = "metti 21"; poi nel page-client "connection.info.port" : "20", metti 22, nell'uber-config db.pool.maxsize=30 prova a mettere 1500, game.tcp.port=21 prova a mettere con 22, game.tcp.conlimit=5000 <- aggiungi uno 0!, mus.tcp.port=20 prova a mettere 21! Fammi sapere! Spero di esserti stato utile ciao!
--------------- AGGIUNTA AL POST ---------------
Gli ho dato la soluzione in PM e mi ha detto che ha risolto! segnalo! :emoji_smiley:
 
Ultima modifica: