Info problema hotel senza hamachi

PolaOwna

Utente Attivo
Autore del topic
17 Agosto 2011
479
21
Miglior risposta
0
salve a tutti ragazzi
ho scritto un altra discussione perchè non ho ancora capito come configurare il mio hotel senza hamachi.

allora ho creato un host su no-ip :es 12345.zapto.org e difianco c'è il mio ip

ho sbloccato le seguenti porte del mio modem:

30000
30001
80
3306

Poi qui non riesco a capire

ho creato un client(client2) secondario,e l'ho configurato al posto degli ip scritti gli ho sostituiti con localhost,da cui accedo io.

nel client originale(dove entrano gli altri) devo mettere il nome del mio host? 12345.zapto.org o il mio ip difianco al nome del mio host?

e le tabelle

cms_system
system_config
cms_setting

gli devo configurare con il nome dell'host 12345.zapto.org o con il ip difianco all'host che ho creato?


vi prego aiutatemi
@Aqui10 & @Gladiators
 
Ultima modifica:
Riferimento: problema hotel senza hamachi

Intanto non è necessario configurare la tabella cms_setting in oltre il cms_system, system_config devi configurarli con il link del sito cioè; 1234.zapto.org
 
Riferimento: problema hotel senza hamachi

@Gladiators ma l'esempio 1234.zapto.org nel client,devo inserire l'esempio o il mio ip?
e nel config?
 
Riferimento: problema hotel senza hamachi

@Gladiators ma l'esempio 1234.zapto.org nel client,devo inserire l'esempio o il mio ip?
e nel config?

Allora nel Client2.php devi mettere localhost invece nel Client.php devi mettere l'esempio 1234.zapto.org e nel config.php l'esempio 1234.zapto.org
 
Riferimento: problema hotel senza hamachi

a me il link a cui devo accedere io (localhost) funziona,ma è agli altri che non funziona l'esempio,e che l'esempio quando lo modificato i miei amici gli porta al mio modem
 
Riferimento: problema hotel senza hamachi

a me il link a cui devo accedere io (localhost) funziona,ma è agli altri che non funziona l'esempio,e che l'esempio quando lo modificato i miei amici gli porta al mio modem

Posta il Client2.php e il Client.php nascondendo il link del server.
 
Riferimento: problema hotel senza hamachi

client:

<?php
/*=======================================================+
|| # HoloCMS - Website and Content Management System
|+=======================================================+
|| # Copyright © 2013 DnT [Tutti i diritti riservati]
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+=======================================================+
|| # DnT HoloCMS v3 / DnT DCR - Created By Donatello (DnT)
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+=======================================================*/


include('core.php');
include('includes/session.php');


if($logged_in){
require_once('includes/session.php');
} else {
header("location: clientutils.php?key=loginplease");
exit;
}


if($online !== "online" && $enable_status_image == "1"){
echo "<font color='white'><center><b>".$sitename." is offline</b></center></font>";
exit();
}


if($remote_ip == "localhost" || $remote_ip == "localhost" && $server_on_localhost == 1){
$ip = "localhost";
}


if(isset($_get['roomid']) && $_get['forwardid'] == "2"){
$roomid = $_get['roomid'];
$checksql = mysql_query("select id from rooms where id = '".$roomid."' limit 1");
$roomexists = mysql_num_rows($checksql);
if($roomexists > 0){
$forward = "1";
echo "<!-- forwarding to room ".$roomid." -->";
} else {
$forward = "0";
echo "<!-- room doesn't exist; not forwarding -->";
}
} else {
echo "<!-- no room forward requested, normal loader -->";
$forward = "0";
}
$myticket = GenerateTicket();
mysql_query("UPDATE users SET auth_ticket = '".$myticket."', ip_last = '".$remote_ip."' WHERE id = '".$my_id."' LIMIT 1") or die(mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />


<title>Bubba Hotel ~ Client</title>


<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="Habbo: RSS" href="http://www.habbo.it/articles/rss.xml" />
<script src="http://dnt.webnet32.com/DCR/flashclient/libs2.js" type="text/javascript"></script>


<script src="http://dnt.webnet32.com/DCR/flashclient/visual.js" type="text/javascript"></script>
<script src="http://dnt.webnet32.com/DCR/flashclient/libs.js" type="text/javascript"></script>
<script src="http://dnt.webnet32.com/DCR/flashclient/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/style.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/bottons.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/boxes.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/tooltips.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/changepassword.css" type="text/css" />




<script type="text/javascript">


</script>
<script type="text/javascript">
var habboReqPath = "";
var habboStaticFilePath = "<?php echo $path; ?>/web-gallery/";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboDefaultClientPopupUrl = "<?php echo $path; ?>/client";






</script>







<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/habboclient.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/habboflashclient.css" type="text/css" />
<script src="http://dnt.webnet32.com/DCR/flashclient/flashdetect.js" type="text/javascript"></script>
<script src="http://dnt.webnet32.com/DCR/flashclient/Loader.js" type="text/javascript"></script>
<script type="text/javascript" src="http://dnt.webnet32.com/DCR/flashclient/habboflashclient_new.js"></script>
<script type="text/javascript">



if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "12345.zapto.org",
"connection.info.port" : "30000",
"site.url" : "12345.zapto.org",
"url.prefix" : "12345.zapto.org",
"client.reload.url" : "12345.zapto.org/client",
"client.fatal.error.url" : "12345.zapto.org/disconnesso",
"client.connection.failed.url" : "12345.zapto.org/disconnesso",
"external.variables.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_variables.txt",
"external.texts.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_flash_texts.txt",
"productdata.load.url" : "http://dnt.webnet32.com/DCR/gamedata/productdata.txt",
"furnidata.load.url" : "http://dnt.webnet32.com/DCR/gamedata/furnidata.txt",
"external.override.variables.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_override_variables.txt",
"external.override.texts.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_override_texts.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $myticket; ?>",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendere.. Bubba Sta Caricando!.",
"flash.client.url" : "http://dnt.webnet32.com/DCR/gordon/",
"user.hash" : "",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://dnt.webnet32.com/DCR/gordon/",
"allowScriptAccess" : "always",
"menu" : "false",
"bgcolor" : "#000",
"wmode" : "transparent"
};


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


FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/logout";


var clientUrl = "http://dnt.webnet32.com/DCR/gordon/Habbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "flashclient/expressInstall.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) {}
}
</script>


<meta name="description" content="DnT DCR Created By Donatello!" />
<meta name="keywords" content="dnt dcr retros" />








<!--[if IE 8]>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/ie6.css" type="text/css" />
<script src="http://dnt.webnet32.com/DCR/flashclient/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>


<style type="text/css">
body { behavior: url(/web-gallery/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="63-BUILD259 - 23.02.2011 23:10 - it" />
</head>


<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="http://dnt.webnet32.com/DCR/flashclient/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">Aggiorna Flash Player all'ultima versione disponibile</h2>
<div class="box-content">
<p>Puoi scaricare e istallare Adobe Flash Player <a href="http://get.adobe.com/flashplayer/">da questa URL</a>. Puoi trovare le istruzioni di istallazione <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">cliccando qui</a>.</p>


<p><a href="http://www.adobe.com/go/getflashplayer"><img src="flashclient/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>
<div style="display: none">
<div id="habboCountUpdateTarget">
4,017 Habbo in Hotel
</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");
if (window.opener && window.opener != window && window.opener.location.href == "/") {
window.opener.location.replace("/me");
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>






<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-448325-20");
pageTracker._trackPageview();
</script>


<script type="text/javascript">
HabboView.run();
</script>
<script type="text/javascript">
jjLoader.init('client', 6, 'web-gallery/v2/images/habbo.png',
'http://dnt.webnet32.com/DCR/c_images/hotel_view_images_hq/hotelview_dynamic_benv.png');
</script>

</body>
</html>

client2:

<?php
/*=======================================================+
|| # HoloCMS - Website and Content Management System
|+=======================================================+
|| # Copyright © 2013 DnT [Tutti i diritti riservati]
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+=======================================================+
|| # DnT HoloCMS v3 / DnT DCR - Created By Donatello (DnT)
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+=======================================================*/


include('core.php');
include('includes/session.php');


if($logged_in){
require_once('includes/session.php');
} else {
header("location: clientutils.php?key=loginplease");
exit;
}


if($online !== "online" && $enable_status_image == "1"){
echo "<font color='white'><center><b>".$sitename." is offline</b></center></font>";
exit();
}


if($remote_ip == "localhost" || $remote_ip == "localhost" && $server_on_localhost == 1){
$ip = "localhost";
}


if(isset($_get['roomid']) && $_get['forwardid'] == "2"){
$roomid = $_get['roomid'];
$checksql = mysql_query("select id from rooms where id = '".$roomid."' limit 1");
$roomexists = mysql_num_rows($checksql);
if($roomexists > 0){
$forward = "1";
echo "<!-- forwarding to room ".$roomid." -->";
} else {
$forward = "0";
echo "<!-- room doesn't exist; not forwarding -->";
}
} else {
echo "<!-- no room forward requested, normal loader -->";
$forward = "0";
}
$myticket = GenerateTicket();
mysql_query("UPDATE users SET auth_ticket = '".$myticket."', ip_last = '".$remote_ip."' WHERE id = '".$my_id."' LIMIT 1") or die(mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />


<title>Bubba Hotel ~ Client</title>


<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="Habbo: RSS" href="http://www.habbo.it/articles/rss.xml" />
<script src="http://dnt.webnet32.com/DCR/flashclient/libs2.js" type="text/javascript"></script>


<script src="http://dnt.webnet32.com/DCR/flashclient/visual.js" type="text/javascript"></script>
<script src="http://dnt.webnet32.com/DCR/flashclient/libs.js" type="text/javascript"></script>
<script src="http://dnt.webnet32.com/DCR/flashclient/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/style.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/bottons.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/boxes.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/tooltips.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/changepassword.css" type="text/css" />




<script type="text/javascript">


</script>
<script type="text/javascript">
var habboReqPath = "";
var habboStaticFilePath = "<?php echo $path; ?>/web-gallery/";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboDefaultClientPopupUrl = "<?php echo $path; ?>/client";






</script>







<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/habboclient.css" type="text/css" />
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/habboflashclient.css" type="text/css" />
<script src="http://dnt.webnet32.com/DCR/flashclient/flashdetect.js" type="text/javascript"></script>
<script src="http://dnt.webnet32.com/DCR/flashclient/Loader.js" type="text/javascript"></script>
<script type="text/javascript" src="http://dnt.webnet32.com/DCR/flashclient/habboflashclient_new.js"></script>
<script type="text/javascript">



if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "http://127.0.0.1",
"connection.info.port" : "30000",
"site.url" : "http://127.0.0.1",
"url.prefix" : "http://127.0.0.1",
"client.reload.url" : "http://127.0.0.1/client",
"client.fatal.error.url" : "http://127.0.0.1/disconnesso",
"client.connection.failed.url" : "http://127.0.0.1/disconnesso",
"external.variables.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_variables.txt",
"external.texts.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_flash_texts.txt",
"productdata.load.url" : "http://dnt.webnet32.com/DCR/gamedata/productdata.txt",
"furnidata.load.url" : "http://dnt.webnet32.com/DCR/gamedata/furnidata.txt",
"external.override.variables.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_override_variables.txt",
"external.override.texts.txt" : "http://dnt.webnet32.com/DCR/gamedata/external_override_texts.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $myticket; ?>",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendere.. Bubba Sta Caricando!.",
"flash.client.url" : "http://dnt.webnet32.com/DCR/gordon/",
"user.hash" : "",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://dnt.webnet32.com/DCR/gordon/",
"allowScriptAccess" : "always",
"menu" : "false",
"bgcolor" : "#000",
"wmode" : "transparent"
};


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


FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/logout";


var clientUrl = "http://dnt.webnet32.com/DCR/gordon/Habbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "flashclient/expressInstall.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) {}
}
</script>


<meta name="description" content="DnT DCR Created By Donatello!" />
<meta name="keywords" content="dnt dcr retros" />








<!--[if IE 8]>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://dnt.webnet32.com/DCR/flashclient/ie6.css" type="text/css" />
<script src="http://dnt.webnet32.com/DCR/flashclient/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>


<style type="text/css">
body { behavior: url(/web-gallery/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="63-BUILD259 - 23.02.2011 23:10 - it" />
</head>


<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="http://dnt.webnet32.com/DCR/flashclient/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">Aggiorna Flash Player all'ultima versione disponibile</h2>
<div class="box-content">
<p>Puoi scaricare e istallare Adobe Flash Player <a href="http://get.adobe.com/flashplayer/">da questa URL</a>. Puoi trovare le istruzioni di istallazione <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">cliccando qui</a>.</p>


<p><a href="http://www.adobe.com/go/getflashplayer"><img src="flashclient/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>
<div style="display: none">
<div id="habboCountUpdateTarget">
4,017 Habbo in Hotel
</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");
if (window.opener && window.opener != window && window.opener.location.href == "/") {
window.opener.location.replace("/me");
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>






<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-448325-20");
pageTracker._trackPageview();
</script>


<script type="text/javascript">
HabboView.run();
</script>
<script type="text/javascript">
jjLoader.init('client', 6, 'web-gallery/v2/images/habbo.png',
'http://dnt.webnet32.com/DCR/c_images/hotel_view_images_hq/hotelview_dynamic_benv.png');
</script>

</body>
</html>
--------------- AGGIUNTA AL POST ---------------
vi prego potete aiutarmi a risolvere questo problema? sopra ho postato il client e il client2 e vedete se c'è qualcosa di sbagliato non credo.
@Aqui10
 
Ultima modifica:
Riferimento: problema hotel senza hamachi

@Aqui10 ho fatto,solo che il problema non è che a me non va il retro,a me va ,ma è agli altri che devono entrare attraverso il link dell'host che ho creato non gli funge e gli porta al mio modem?

Sicuro che non ho sbagliato nient'altro nel 1° client?