Problema con hablog v15

Stato
Discussione chiusa ad ulteriori risposte.

marietto

Utente bannato
Autore del topic
5 Luglio 2008
22
0
Miglior risposta
0
salve ragazzi sto seguendo la guida di -Simo- http://www.sciax2.it/forum/showthread.php?t=13604 per fare un hotel con hablog o finito tutto l unika kosa ke mi manka e ke non riesko a fare e modifikare il file config.php a un certo punto mi dice di aprirlo con blocco notes e modificare le seguenti stringhe
$database = "Link dv sta il vosto database tipo se sta nel desktop(C:\Documents and Settings\UserWindows\Desktop\HabLog_v15_FULL\SERVE R\database)";
$host = "Host No-ip senza http://";
$web = "Host No-ip con http://";

solo ke sono sparse ovunque e non le trovo......se vi posto i dati da inserire e il codice del file config potete farlo voi?vi prego.......

il codice ke o rikavato con blokko notes e ke devo modificare e questo
_________________________________________________________________


<!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">
<? include("config.php"); ?>

<script src="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/static/js/domready.js" type="text/javascript"></script>
<script src="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/static/js/common.js" type="text/javascript"></script>

<link rel="stylesheet" href="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/v2/styles/tooltips.css" type="text/css" />
<script src="http://habbo.co.uk/js/local/uk.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/v2/styles/process.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/v2/styles/client.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbohotel.co.uk/habboweb/19_893f5b1b323d5c8b3767d50e5f5988a6/14/web-gallery/v2/styles/habboclient.css" type="text/css" />
<script type="text/javascript" language="javascript">
var habboClient = true;
HabboClientUtils.init();
</script>


<meta name="description" value="<? echo "$name"; ?> is a virtual world where you can meet and make friends." />
<meta name="keywords" value="<? echo "$name"; ?>,virtual world,play games,enter competitions,make friends" />
<head><?
// HABLOG WEB 2.0
$mysession = getenv( REMOTE_ADDR );
$langfile = file_get_contents("$database/logged/lang/$mysession.txt");

include("locales/$langfile.php");
// HABLOG WEB 2.0
?>
<?
// Hablog Situations
$a = chr(60);
$b = chr(62);
// Maintenance?
if ($maintenance == "1") {
include("maintenance.php");
exit;
}
else {
}
// Maintenance?
// Logged in?
$mysession = getenv( REMOTE_ADDR );
$user = "$database/logged/$mysession.txt";
if (file_exists($user)) {
}
else {
include("relogin.php");
exit;
}
// Logged in?
// Hablog Situations
?>

<meta name="build" content="7.0.18 - 20071011153905 - uk" />
</head>

<body id="client">

<div id="client-topbar" style="display:none">
<div class="logo"><img src="popup_topbar_hablog_logo.gif" alt="" align="middle"/></div>
<div class="habbocount"><div id="habboCountUpdateTarget">
<?
$echo = file_get_contents("$database\onlines.txt");
echo "$echo";
?> <? echo "$membersonline"; ?>
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<div class="logout"><a href="logout.php">logout</a></div>
</div>
<html><body bgcolor="#000000"><head>
<title><? echo $name; ?> ~ Client</title>
</head>
<script type="text/javascript" language="javascript">
window.onload = resizeWin;
window.onerror = function() { return true; };
window.onunload = clearOpener;
ensureOpenerIsLoggedIn();
addClientUnloadHook();
Event.observe(document, "keypress", function(e) { if (e.keyCode == Event.KEY_BACKSPACE) { Event.stop(e); } });
</script>
<?
//HabLog Home by Hebbo
//HabLog Home by Hebbo
$myusername=$_GET[username];
$mypassword=$_GET[password];
$rand1=mt_rand(100000,999999) ;
$rand2=mt_rand(10000,99999) ;
$rand3=mt_rand(10000,99999) ;
$rand4=mt_rand(10000,99999) ;
$rand5=mt_rand(10000,99999) ;
$rand6=mt_rand(0,9) ;
if (!file_exists("$database/habbos/$myusername/pass.txt")) {
}
else {
$realpass = file_get_contents("$database/habbos/$myusername/pass.txt");
}
$ticket="ST-".$rand1."-".$rand2.$rand3.$rand4.$rand5."-es-fe".$rand6 ;
if($mypassword == "$realpass") {

$myFile = "$database/tickets/$ticket.txt";
}
{
$filename = "$database/tickets/$ticket.txt";
}
// hard code the variable from flash
$somecontent = "$myusername";

// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}

// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
echo "Connection failed!";
exit;
}
// close the file
fclose($handle);

// Print Sex
//{
$mysession = getenv( REMOTE_ADDR );
//$filename = "$database/logged/$mysession.txt";
//}
// hard code the variable from flash
//$somecontent = "$myusername";

// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
//if (!$handle = fopen($filename, 'w')) {
// exit;
//}
//
// Write $somecontent to the opened file.
//if (fwrite($handle, $somecontent) === FALSE) {
// exit;
//}
// close the file
//fclose($handle);
// Print Sex

$datum = getdate();
$current = date("dmYHis");
$fileas = "$database/bans/user_bans/$myusername.txt";
if (file_exists($fileas)) {
$unbandate = file_get_contents("$database/bans/user_bans/$myusername.txt");
$unbandate = str_replace(" ", "", $unbandate);
$unbandate = str_replace(":", "", $unbandate);
$unbandate = str_replace("-", "", $unbandate);
$unbandate = str_replace(".", "", $unbandate);
//echo "$unbandate - $current";
if ($unbandate > $current) {
//$unban="$database/bans/user_bans/$myusername.txt";
//unlink($unban);
//$reason="$database/bans/user_bans/$myusername.reason";
//unlink($reason);
}
else {
}
}
else {
}

if (file_exists($fileas)) {
$reason = file_get_contents("$database/bans/user_bans/$myusername.reason");
$unbandate = file_get_contents("$database/bans/user_bans/$myusername.txt");
$ban = file_get_contents("ban.php");
$ban = str_replace("%REASON%", "$reason", $ban);
$ban = str_replace("%UNBANDATE%", "$unbandate", $ban);
//echo "$ban";
//exit;
}
else {
}

//$host = sprintf('Location: %s', $_SERVER['HTTP_HOST']);
if($mypassword == "$realpass") {
//http://europei3040.altervista.org/dcr20/habbo.dcr
echo "</script><div align='center'><object classid='clsid:166B1BCA-3F9C-11CF-8075-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0' id='habbo' width='720' height='540'><param name='src' value='http://europei3040.altervista.org/dcr20/habbo.dcr'> <param name='swRemote' value='swSaveEnabled='true' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swTitle='Habbo Hotel' swContextMenu='true' '> <param name='swStretchStyle' value='none'> <param name='swText' value=''> <param name='bgColor' value='#000000'> <param name='sw6' value='use.sso.ticket=1;sso.ticket=$ticket'> <param name='sw2' value='connection.info.host=heathotel.no-ip.biz;connection.info.port=147'> <param name='sw4' value='connection.mus.host=heathotel.no-ip.biz;connection.mus.port=62'> <param name='sw3' value='client.reload.url=logout.php'> <param name='sw1' value='site.url=http://$web/community/;url.prefix=http://$web/community/'><param name='sw5'value='external.variables.txt=http://europei3040.altervista.org/dcr20/vars.txt;external.texts.txt=http://europei3040.altervista.org/dcr20/texts.txt'><embed src='http://europei3040.altervista.org/dcr20/habbo.dcr' bgColor='#000000' width='720' height='540' swRemote='swSaveEnabled='true' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swTitle='Habbo Hotel' swContextMenu='true'' swStretchStyle='none' swText='' type='application/x-director' pluginspage='http://www.macromedia.com/shockwave/download/'sw6='use.sso.ticket=1;sso.ticket=$ticket'sw2='connection.info.host=heathotel.no-ip.biz;connection.info.port=147' sw4='connection.mus.host=heathotel.no-ip.biz;connection.mus.port=62'sw3='client.reload.url=logout.php' sw1='site.url=http://$web/community/;url.prefix=http://$web/community/'sw5='external.variables.txt=http://europei3040.altervista.org/dcr20/vars.txt;external.texts.txt=http://europei3040.altervista.org/dcr20/texts.txt'></embed> </object></div>";
}
else {
}
?>

<?
//Create Files (/usehost.txt)
{
$host = sprintf('%s', $_SERVER['HTTP_HOST']);
$mysession = getenv( REMOTE_ADDR );
$filename = "$database/habbos/$myusername/usehost.txt";
}
// hard code the variable from flash
$somecontent = "$host";

// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}

// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/usehost.txt)
?>


<?php
$ip = $_SERVER['REMOTE_ADDR'];
//Create Files (/mac.txt)
{
$host = sprintf('%s', $_SERVER['HTTP_HOST']);
$mysession = getenv( REMOTE_ADDR );
$filename = "$database/habbos/$myusername/mac.txt";
}
// hard code the variable from flash
$somecontent = gethostbyaddr($ip);

// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}

// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/mac.txt)

//Create Files (/agent.txt)
{
$agent = $_SERVER["HTTP_USER_AGENT"];
$mysession = getenv( REMOTE_ADDR );
$filename = "$database/habbos/$myusername/agent.txt";
}
// hard code the variable from flash
$somecontent = "$agent";

// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}

// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);




mentre i dati da mettere sono il sito di no-ip ke e
Perfavore, Entra oppure Registrati per vedere i Link!
mentre il link dove sta il database e C:\Documents and Settings\Marco\Desktop\Hablog_v15\SERVER\database spero voi al mio contrario ci riusciate.........
 
Ultima modifica:
EDIT:ragazzi v iprego aiutatemi sono disperato e 2 giorni che ci provo ma niente...............
 
apri il config.php e metti quei parametri te.
La 2° parte .. con quel codice.. non c'entra nulla..
Solo il config devi modificare.
 
si lo so ma il kodice ke o messo sopra e il contenuto del file config!!!!ma non riesco a trovare le scritte $host ecc per favore puoi modificarmele tu mitiko valerio ti prego!!!!!!
 
ma che c'entra -.-
Devi metterlo accanto -.-
In config.php trovi questo:

$database = "Link dv sta il vosto database tipo se sta nel desktop(C:\Documents and Settings\UserWindows\Desktop\HabLog_v15_FULL\SERVE R\database)";
$host = "Host No-ip senza http://";
$web = "Host No-ip con http://";

metti i dati nello spazio rosso.
 
non ai kapito!!!!scusa ti o detto ke nel file config si trova il kodice ke o scritto sopra e le scritte $host $web $database sono sparsi qua e la nel file........ non sono scritti tutti di fila come lo ai scritto tu....e ti avevo kiesto se per favore visto ke tu sei il genio di ste kose...se potevi kambiarli tu i dati per piacere
 
problema risolto solo ke kuando vado nel mio sito di no-ip cioe hablog.no-ip.biz si apre la skermata di configurazione del mio router
 
problema risolto va tutto ora!!!
 
Ultima modifica:
Stato
Discussione chiusa ad ulteriori risposte.