View attachment 3248Sto utilizzando un tutorial di 2-3 anni fa , ma mantenendo i CMS+db+dcr tenuti in questa guida.Nel Tutorial che sto guardando dice poi che all'interno del Database, nella voce cms_system dovrei aggiungere l'IP di Hamachi, ma in questo cms_system non vi è nessuna voce simile.Come devo fare? Attendo una vostra risposta , grazie <3
In questo CMS è diverso. Tutto ciò che devi cambiare sono:
-L'URL nel file di configurazione del CMS (dovrebbe essere main.php ma non ricordo benissimo)
-L'IP nel client
Scusa la mia ignoranza in materia ma non trovo main.php nella cartella del cms, tantomeno l'IP
Qui di seguito ti mostro quello che c'è nella mia cartella:
View attachment 3249
Il file da modificare è il core.php
Scusa, non ricordavo. E poi l'IP lo devi cambiare nel client.php.
Figurati , un ultima domanda.
nel file client devo modificare la spunta dove c'è scritto Ip last = ?
<?php
include('core.php');
$forward = 0;
if(isset($_GET['roomId'])){
$roomid = mysql_real_escape_string($_GET['roomId']);
$checksql = mysql_query("SELECT roomtype FROM rooms WHERE id = '".$roomid."' LIMIT 1");
$roomexists = mysql_num_rows($checksql);
if($roomexists > 0){
$roominfo = mysql_fetch_array($checksql);
$forward = 1;
if($roominfo['roomtype'] == 'public')
$forward_type = 1;
else
$forward_type = 2;
}
}
$myticket = GenerateTicket();
mysql_query("UPDATE users SET auth_ticket = '".$myticket."', ip_last = '".$remote_ip."' WHERE id = '".$my_id."' LIMIT 1") or die(mysql_error());
$sondaggi = mysql_query("SELECT * FROM sondaggi WHERE utente = '".$name."'");
if(mysql_num_rows($sondaggi) == 0 && $myrow['view_poll'] == 1){ include('web/functions/poll.php'); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
">
<html xmlns="
" xml:lang="en" lang="en" xmlns:og="
" xmlns:fb="
">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php echo $shortname; ?> ~ Client</title>
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="images/index/icona.ico" type="image/vnd.microsoft.icon" />
<script src="flashclient/libs2.js" type="text/javascript"></script>
<script src="flashclient/visual.js" type="text/javascript"></script>
<script src="flashclient/libs.js" type="text/javascript"></script>
<script src="flashclient/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="flashclient/style.css" type="text/css" />
<link rel="stylesheet" href="flashclient/bottons.css" type="text/css" />
<link rel="stylesheet" href="flashclient/boxes.css" type="text/css" />
<link rel="stylesheet" href="flashclient/tooltips.css" type="text/css" />
<link rel="stylesheet" href="flashclient/changepassword.css" type="text/css" />
<script type="text/javascript">
var habboReqPath = "<?php echo $path; ?>";
var habboStaticFilePath = "<?php echo $path; ?>r63/c_images/";
var habboImagerUrl = "
";
var habboDefaultClientPopupUrl = "/client.php";
</script>
<link rel="stylesheet" href="flashclient/habboclient.css" type="text/css" />
<link rel="stylesheet" href="flashclient/habboflashclient.css" type="text/css" />
<script src="flashclient/habboflashclient.js" type="text/javascript"></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" : "127.0.0.1",
"connection.info.port" : "30000",
"site.url" : "<?php echo $path; ?>",
"url.prefix" : "<?php echo $path; ?>",
"client.reload.url" : "<?php echo $path; ?>client",
"client.fatal.error.url" : "<?php echo $path; ?>client",
"client.connection.failed.url" : "<?php echo $path; ?>client",
"external.variables.txt" : "<?php echo $path; ?>r63/gamedata/external_variables.php?username=<?php echo $name; ?>",
"external.texts.txt" : "<?php echo $path; ?>r63/gamedata/external_flash_texts.txt",
"productdata.load.url" : "<?php echo $path; ?>r63/gamedata/productdata.txt",
"furnidata.load.url" : "<?php echo $path; ?>r63/gamedata/furnidata.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $myticket; ?>",
<?php
if($forward)
{
echo '"forward.type" : "'.$forward_type.'",';
echo '"forward.id" : "'.$roomid.'",';
}
if(isset($_GET['friendId']))
{
echo '"friend.id" : "'.mysql_real_escape_string($_GET['friendId']).'",';
}
?>
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendi perfavore! <?php echo $shortname; ?> sta caricando.",
"flash.client.url" : "<?php echo $path; ?>r63/dcr/hof_furni/",
"user.hash" : "",
"has.identity" : "1",
"flash.client.origin" : "popup"
};
var params = {
"base" : "<?php echo $path; ?>r63/gordon/r63/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
FlashExternalInterface.signoutUrl = "<?php echo $path; ?>logout";
var clientUrl = "<?php echo $path; ?>r63/gordon/r63/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) {}
}
function toggleFullScreen()
{
if ((document.fullScreenElement && document.fullScreenElement !== null) ||
(!document.mozFullScreen && !document.webkitIsFullScreen))
{
if (document.documentElement.requestFullScreen)
{
document.documentElement.requestFullScreen();
}
else if (document.documentElement.mozRequestFullScreen)
{
document.documentElement.mozRequestFullScreen();
}
else if (document.documentElement.webkitRequestFullScreen)
{
document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
}
}
else
{
if (document.cancelFullScreen)
{
document.cancelFullScreen();
}
else if (document.mozCancelFullScreen)
{
document.mozCancelFullScreen();
}
else if (document.webkitCancelFullScreen)
{
document.webkitCancelFullScreen();
}
}
}
function closeCredits(){ document.getElementById("credits").style.display='none'; }
function closeSocial(){ document.getElementById("fbLike").style.display='none'; }
function closeNews(){ document.getElementById("news").style.display='none'; }
function readNews(numero){ document.getElementById("news-"+numero).style.display='block'; }
function unreadNews(numero){ document.getElementById("news-"+numero).style.display='none'; }
</script>
<!--[if IE 8]>
<link rel="stylesheet" href="flashclient/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="flashclient/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="flashclient/ie6.css" type="text/css" />
<script src="flashclient/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<![endif]-->
</head>
<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="flashclient/page_loader.gif" style="position:absolute; margin: -1500px;" />
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper" style="width:100%">
<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="
">da questa URL</a>. Puoi trovare le istruzioni di istallazione <a href="
">cliccando qui</a>.</p>
<p><a href="
"><img src="flashclient/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
</div>
</div>
<div id="content" class="client-content"></div>
</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("/home");
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>
<div style="left: 25px;position: absolute;top: 12px;z-index: 1060;
">
<a target="_blank" href="/home"><button class="web-button">
<div class="arrow"></div><div class="arrow2"></div>
<span>WEB</span></button></a>
<button onclick="toggleFullScreen()" class="fullscreen-button"><i></i></button></div>
<script src="
" 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>
</body>
</html>