- MoonkeyNovato
- Idade : 34
Posts : 42
Créditos : 0
Respeito : 0
Ajuda e aprender
Problema com CMS Habbo Retro r 4
Ter 11 Jan 2011, 01:05
Bom é assim eu configuro tudo certo na minha CMS, coloco no vertrigo e talz.
Quando vou entrar no client manda escolher umas das linguages ( portugues, frances ....). eu escolo a portugues mas da erro fala que o hotel nao está online..
( o emu ta ligado certinho,configurado).
A page cliente, inc.config,class.db.mysql tudo está certo, mas na hora de entrar aparece que o hotel está off..
Se quiserem testar a CMS olhem :
http://www.habboz-forum.net/t15642-habboretro-r4
-------------------------------------------------
será que estou configurando errado ?
Olhem meu page client
----------------------------------------
<body id="client"
class="flashclient">
<script
type="text/javascript">
var
habboDefaultClientPopupUrl =
"%www%/client";
</script>
<noscript>
<meta http-removido="removido"
content="0;url=%www%/client/nojs"
/>
</noscript>
<script
type="text/javascript">
FlashExternalInterface.loginLogEnabled
= true;
FlashExternalInterface.logLoginStep("w
eb.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "5.171.168.84",
"connection.info.port" : "30000",
"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" :
"%variables%",
<?php
// TRADUÇÃO DO
CLIENT (RECOMENDAVEL NÃO
EDITAR)
if(isset($_GET['lang'])){
if($_GET['lang'] < 1 || $_GET['lang'] > 8
){
header("Location:
client?lang=1");
$tab =
0;
exit;
} else {
$tab = $_GET['lang'];
}
} else {
$tab = "1";
}
if($tab == "1"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_br.txt",
<?php } else if($tab == "2"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_es.txt",
<?php } else if($tab == "3"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_nl.txt",
<?php } else if($tab == "4"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_de.txt",
<?php } else if($tab == "5"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_fr.txt",
<?php } else if($tab == "6"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_se.txt",
<?php } else if($tab == "7"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_us.txt",
<?php } else if($tab == "8"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_other.txt",
<?php }
if ($forwardType
> 0)
{
echo ' "forward.type" :
"' . $forwardType . '",' . LB;
echo '
"forward.id" : "' . $forwardId . '",' .
LB;
}
?>
"sso.ticket" :
"%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
<?php if($tab == "1"){
?>
"client.starting" : "Por favor
aguarde! O Habbo está carregando...",
<?php }
else if($tab == "2"){ ?>
"client.starting" : "Por favor, espere!
Habbo es cargando...",
<?php }
else
if($tab == "3"){ ?>
"client.starting" : "Even geduld aub!
Habbo wordt geladen...",
<?php }
else
if($tab == "4"){ ?>
"client.starting" : "Bitte warten! Habbo
wird geladen...",
<?php }
else if($tab ==
"5"){ ?>
"client.starting" : "S'il
vous plaît attendre! Habbo est
chargé...",
<?php }
else if($tab == "6"){
?>
"client.starting" : "Var god
vänta! Habbo laddas...",
<?php }
else
if($tab == "7"){ ?>
"client.starting" : "Please wait! Habbo is
loading...",
<?php }
else if($tab == "8"){
?>
"client.starting" : "Please
wait! Habbo is loading...",
<?php } ?>
"flash.client.url" :
"%flash_client_url%",
"user.hash" : "0",
"has.identity" :
"0",
"flash.client.origin" :
"popup"
};
var params = {
"base" : "%flash_base%",
"allowScriptAccess" : "always",
"menu" : "false"
};
if
(!(HabbletLoader.needsFlashKbWorkarou
nd())) {
params["wmode"] =
"opaque";
}
var clientUrl =
"%flash_base%/Habbo10.swf";
try {
if
(swfobject.getFlashPlayerVersion().majo
r <= 9) {
clientUrl =
"%flash_base%/Habbo.swf";
}
}
catch(e) {}
swfobject.embedSWF(clientUrl,
"flash-container", "100%", "100%",
"9.0.115",
"http://images.habbo.com/habboweb/%w
eb_build%/web-gallery/flash/expressIns
tall.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) {}
}
<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="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/getflas
hplayer"><img
src="http://images.habbo.com/habboweb
/45_0061af58e257a7c6b931c91f771b4
483/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">
%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>
----------------------------------
Meu Inc.config
---------------------------------------
<?php
/*=========================================================
| HabboRetro ~ CMSE - Content Management Systems Expert
| #########################################################
| HabboRetro release_4 Developed by bil & Meth0d
| Parts by Sisija and bil
| Visit Meth0d.org , Portal-Habbo.com.br
| #########################################################
| Cms developed to improve the delivery system of your
| habbo private if you have questions, suggestions or any
| bugs reportal please contact: gabriel_bil123@hotmail.com
| #########################################################
| Content license: Creative Commons 3.0 BY
| Code license: Apache License 2.0
\=========================================================*/
$config['Site']['www'] = "http://5.171.168.84/";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "vertrigo";
$config['MySQL']['database'] = "habbodb";
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "5.171.168.84";
$config['MUS']['port'] = "30001";
?>
----------------------------------
E meu class.db.mysql
----------------------------------
<?php
/*=========================================================
| HabboRetro ~ CMSE - Content Management Systems Expert
| #########################################################
| HabboRetro release_4 Developed by bil & Meth0d
| Parts by Sisija and bil
| Visit Meth0d.org , Portal-Habbo.com.br
| #########################################################
| Cms developed to improve the delivery system of your
| habbo private if you have questions, suggestions or any
| bugs reportal please contact: gabriel_bil123@hotmail.com
| #########################################################
| Content license: Creative Commons 3.0 BY
| Code license: Apache License 2.0
\=========================================================*/
class MySQL
{
private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "vertrigo";
private $database = "habbodb";
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();
}
}
?>
----------------------------------------------------------
Obrigado
Me ajudem >.<
Moonkey
Quando vou entrar no client manda escolher umas das linguages ( portugues, frances ....). eu escolo a portugues mas da erro fala que o hotel nao está online..
( o emu ta ligado certinho,configurado).
A page cliente, inc.config,class.db.mysql tudo está certo, mas na hora de entrar aparece que o hotel está off..
Se quiserem testar a CMS olhem :
http://www.habboz-forum.net/t15642-habboretro-r4
-------------------------------------------------
será que estou configurando errado ?
Olhem meu page client
----------------------------------------
<body id="client"
class="flashclient">
<script
type="text/javascript">
var
habboDefaultClientPopupUrl =
"%www%/client";
</script>
<noscript>
<meta http-removido="removido"
content="0;url=%www%/client/nojs"
/>
</noscript>
<script
type="text/javascript">
FlashExternalInterface.loginLogEnabled
= true;
FlashExternalInterface.logLoginStep("w
eb.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "5.171.168.84",
"connection.info.port" : "30000",
"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" :
"%variables%",
<?php
// TRADUÇÃO DO
CLIENT (RECOMENDAVEL NÃO
EDITAR)
if(isset($_GET['lang'])){
if($_GET['lang'] < 1 || $_GET['lang'] > 8
){
header("Location:
client?lang=1");
$tab =
0;
exit;
} else {
$tab = $_GET['lang'];
}
} else {
$tab = "1";
}
if($tab == "1"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_br.txt",
<?php } else if($tab == "2"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_es.txt",
<?php } else if($tab == "3"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_nl.txt",
<?php } else if($tab == "4"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_de.txt",
<?php } else if($tab == "5"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_fr.txt",
<?php } else if($tab == "6"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_se.txt",
<?php } else if($tab == "7"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_us.txt",
<?php } else if($tab == "8"){
?>
"external.texts.txt" :
"%www%/gamedata/external_flash_text
s_other.txt",
<?php }
if ($forwardType
> 0)
{
echo ' "forward.type" :
"' . $forwardType . '",' . LB;
echo '
"forward.id" : "' . $forwardId . '",' .
LB;
}
?>
"sso.ticket" :
"%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
<?php if($tab == "1"){
?>
"client.starting" : "Por favor
aguarde! O Habbo está carregando...",
<?php }
else if($tab == "2"){ ?>
"client.starting" : "Por favor, espere!
Habbo es cargando...",
<?php }
else
if($tab == "3"){ ?>
"client.starting" : "Even geduld aub!
Habbo wordt geladen...",
<?php }
else
if($tab == "4"){ ?>
"client.starting" : "Bitte warten! Habbo
wird geladen...",
<?php }
else if($tab ==
"5"){ ?>
"client.starting" : "S'il
vous plaît attendre! Habbo est
chargé...",
<?php }
else if($tab == "6"){
?>
"client.starting" : "Var god
vänta! Habbo laddas...",
<?php }
else
if($tab == "7"){ ?>
"client.starting" : "Please wait! Habbo is
loading...",
<?php }
else if($tab == "8"){
?>
"client.starting" : "Please
wait! Habbo is loading...",
<?php } ?>
"flash.client.url" :
"%flash_client_url%",
"user.hash" : "0",
"has.identity" :
"0",
"flash.client.origin" :
"popup"
};
var params = {
"base" : "%flash_base%",
"allowScriptAccess" : "always",
"menu" : "false"
};
if
(!(HabbletLoader.needsFlashKbWorkarou
nd())) {
params["wmode"] =
"opaque";
}
var clientUrl =
"%flash_base%/Habbo10.swf";
try {
if
(swfobject.getFlashPlayerVersion().majo
r <= 9) {
clientUrl =
"%flash_base%/Habbo.swf";
}
}
catch(e) {}
swfobject.embedSWF(clientUrl,
"flash-container", "100%", "100%",
"9.0.115",
"http://images.habbo.com/habboweb/%w
eb_build%/web-gallery/flash/expressIns
tall.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) {}
}
<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="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/getflas
hplayer"><img
src="http://images.habbo.com/habboweb
/45_0061af58e257a7c6b931c91f771b4
483/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">
%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>
----------------------------------
Meu Inc.config
---------------------------------------
<?php
/*=========================================================
| HabboRetro ~ CMSE - Content Management Systems Expert
| #########################################################
| HabboRetro release_4 Developed by bil & Meth0d
| Parts by Sisija and bil
| Visit Meth0d.org , Portal-Habbo.com.br
| #########################################################
| Cms developed to improve the delivery system of your
| habbo private if you have questions, suggestions or any
| bugs reportal please contact: gabriel_bil123@hotmail.com
| #########################################################
| Content license: Creative Commons 3.0 BY
| Code license: Apache License 2.0
\=========================================================*/
$config['Site']['www'] = "http://5.171.168.84/";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "vertrigo";
$config['MySQL']['database'] = "habbodb";
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "5.171.168.84";
$config['MUS']['port'] = "30001";
?>
----------------------------------
E meu class.db.mysql
----------------------------------
<?php
/*=========================================================
| HabboRetro ~ CMSE - Content Management Systems Expert
| #########################################################
| HabboRetro release_4 Developed by bil & Meth0d
| Parts by Sisija and bil
| Visit Meth0d.org , Portal-Habbo.com.br
| #########################################################
| Cms developed to improve the delivery system of your
| habbo private if you have questions, suggestions or any
| bugs reportal please contact: gabriel_bil123@hotmail.com
| #########################################################
| Content license: Creative Commons 3.0 BY
| Code license: Apache License 2.0
\=========================================================*/
class MySQL
{
private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "vertrigo";
private $database = "habbodb";
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();
}
}
?>
----------------------------------------------------------
Obrigado
Me ajudem >.<
Moonkey
Permissões neste sub-fórum
Não podes responder a tópicos
|
|