è bello usare un downloader per scaricare i file php e farci una cms davvero bravi![]()
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\include\layout_home.php on line 113
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\include\layout_home.php on line 113
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\include\layout_home.php on line 116
Bah quegli errori, riguardano la connessione MySQL
Postami il contenuto di index.php e di include/config.php
pure a me da questi errori ti posto le immagini:
In home page prima di entrare:
![]()
Durante la registrazione:
![]()
E mentre si tenta di entrare in hotel:
![]()
--------------- AGGIUNTA AL POST ---------------
mi metto in mezzo alla conversazione ecco come li ho messi io Index.php:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # LiveXenon Group Habbo CMS ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2007-2009 LievXenon Group. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # --------------- LIVEXENON IS A PRIVATE SOFTWARE ---------------- # ||
|| #################################################################### ||
\*======================================================================*/
$idpagina = 1;
include("include/layout_home.php");
if($_GET['logout'] == "true"){
session_destroy();
header("Location: ".$_SERVER['PHP_SELF']."");
}
top()
?>
<? if($_SESSION['username']){ ?>
<body id="embedpage">
<div id="container">
<div id="embed-content">
<div class="clearfix">
<a href="client.php" id="fullscreen-button" class="new-button green-button" target="15fe329854098ab0db334e507a4e78397320eed6" onclick="HabboClient.openOrFocus(this); return false;"><b><? echo $linguaggio['enter']; ?></b><i></i></a>
<div id="signout">
<div class="roundedrect roundedrect-gray">
<span><a href="<? $_SERVER['PHP_SELF'] ?>?logout=true" class="userlink" onclick="HabboClient.close(true);"><? echo $linguaggio['exit']; ?></a></span>
</div>
</div>
<div id="logged-in-content">
<div class="roundedrect roundedrect-white">
<span><? echo $linguaggio['logged']; ?> <b><? echo $_SESSION['username']; ?></b></span>
</div>
</div>
</div>
<div id="image-content">
<a href="client.php" id="enter-hotel-image-link" style="background-image: url('<? echo $patch; ?>habboweb/web-gallery/v2/images/landing/embed_image_01.png')" target="15fe329854098ab0db334e507a4e78397320eed6" onclick="HabboClient.openOrFocus(this); return false;"></a>
</div>
<div id="image-caption" class="roundedrect roundedrect-gray">
<span><? echo $linguaggio['descrizione']; ?></span>
</div>
<br>
<p><a href="impostazioni.php" onclick="Embed.openPopupWindow(this); return false;" target="_blank" id="settings-submit" class="new-button"><b><? echo $linguaggio['look_change']; ?></b><i></i></a></p>
</div>
<? }else{ ?>
<body id="embedpage">
<div id="container">
<div id="embed-content">
<div class="clearfix">
<div id="habbo-logo"></div>
<div id="to-hotel">
<a href="login.php" class="new-button green-button" onclick="Embed.openPopupWindow(this); return false;" target="_blank"><b><? echo $linguaggio['enter']; ?></b><i></i></a>
</div>
</div>
<div id="image-content">
<a href="registrazione.php" onclick="Embed.openPopupWindow(this); return false;" target="_blank" class="big-button">
<table>
<tr><td align="center" valign="middle"><? echo $linguaggio['free']; ?></td></tr>
</table>
</a>
<a href="registrazione.php" onclick="Embed.openPopupWindow(this); return false;" target="_blank" id="enter-hotel-image-link" style="background-image: url('<? echo $patch; ?>habboweb/web-gallery/v2/images/landing/embed_image_01.png')"></a>
</div>
<div id="image-caption" class="roundedrect roundedrect-gray">
<span><? echo $linguaggio['descrizione']; ?></span>
</div>
</div>
<script type="text/javascript">
Embed.setEmbedWindowName();
function login_ok(roomType) {
var queryString = "";
if (roomType) {
queryString = "&createRoom=" + roomType;
}
window.location.replace("http://www.habbo.co.uk/client?embed=true&popup=false&forwardId=2&roomId=28738975&utm_campaign=embed&utm_content=partnerembed&utm_medium=media-partnerembed&utm_source=embed" + queryString);
}
</script>
<? } ?>
<?php
foot()
?>
config.php:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # LiveXenon Group Habbo CMS ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2007-2009 LievXenon Group. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # --------------- LIVEXENON IS A PRIVATE SOFTWARE ---------------- # ||
|| #################################################################### ||
\*======================================================================*/
session_start();
$host = "localhost";
$dbuser = "root";
$password = "";
$dbname = "livedb2";
$connessione = mysql_connect($host, $dbuser, $password);
$selectdb = mysql_select_db($dbname, $connessione);
$patch = "http://localhost/livexenon/";
$sitename = "Cm-hotel";
//DATI CLIENT
$porta = "37529";
$musporta = "36264";
$serverhost = "127.0.0.1";
$dcr = "http://livexenon.netsons.org/DCR/v35/habbo.dcr?";
$texts = "http://nbmania.netsons.org/v37_1/extra/texts.txt?";
$variables = "http://livexenon.netsons.org/DCR/v35/gamedata/variables.txt?";
//NEW UTENTE
$figura = "hd-180-3.ch-235-92.lg-281-92.sh-295-92.hr-891-31";
$sesso = "M";
$missione = "Amministratore";
$tickets = "5000";
$crediti = "50";
$pixel = "500";
?>
Noi e terze parti selezionate utilizziamo cookie o tecnologie simili per finalità tecniche e, con il tuo consenso, anche per altre finalità come specificato nella cookie policy. Usa il pulsante “Accetta” per acconsentire l'utilizzo di tutti i cookies. In alternativa puoi fare clic sul pulsante “Continua senza accettare” per negare il consenso o su "Gestisci le tue preferenze" per accedere a informazioni più dettagliate e modificare le tue preferenze prima di acconsentire.