Domanda Login.php non funziona...

#Federico100

Utente Assiduo
Autore del topic
5 Luglio 2011
527
21
Miglior risposta
0
Cosa devo fare??? Stavo giocando normalmente con il mioretroserver con hamachi, ho deciso di cambiarlo e farlo senza hamachi, ho sbloccato le porte, ho aggiunto un dominio a NO-IP lo messo nel config.php in htdocs ma niente non caricava quindi ho rimesso hamachi, andava la index.php ma quando cliccavo connessione mi è apparsa solo la scritta Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\config.php:1) in C:\xampp\htdocs\login.php on line 216

Cosa devo fare??? non ditemi che devo rifare il retro D:
Ecco la screen:
Perfavore, Entra oppure Registrati per vedere i Link!


:emoji_slight_frown: Molti miei amici stanno aspettando che io apri il retro... :emoji_slight_frown:
 
Riferimento: Login.php non funziona...

Posta config.php e login.php

C'è un errore alla linea 216 del login a causa di un errore di accomunamento.
 
Riferimento: Login.php non funziona...

Config.php

<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright � 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
| If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/

// ****** MASTER DATABASE SETTINGS ******
// These are the settings required to connect to your MySQL Database.
$sqlhostname = "localhost";
$sqlusername = "root";
$sqlpassword = "lo1spazio";
$sqldb = "hotelri";

// ****** STATUS CHECKS SYSTEM ******
// This option will allow HoloCMS to perform full status checks. This,
// however, slows down your site A LOT. It is therefore disabled by
// default.
$enable_status_image = "0";

// ****** SITE PATH ******
// The full URL to your site; with an slash added on the end.
$path = "http://5.194.82.112/";

// ****** REFFERAL REWARD ******
// The amount of credits a user recieves upon referring a friend to the
// hotel. Set to '500' by default.
$reward = "50";

// ****** HOLOCMS SYSTEM ADMINISTRATOR ******
// User ID of the System Administrator. Will be granted access to sensitive
// features. Set to '1' by default. This setting will not change your
// ingame priveliges.
$sysadmin = "1";
Config.php

// ****** HOLOCMS ENCRYPTION SYSTEM ******
// How HoloCMS stores passowrds.
// Do NOT manually change this unless you know what you are doing,
// doing so may corrupt your database.
$encryption = "new";
$hashtext = "";

// ****** BADGES ******
// Where badges are located.
$cimagesurl = "http://images.habbohotel.com/c_images/";
$badgesurl = "album1584/";

Login.php

<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

include('core.php');



session_start();




if(!session_is_registered(username)){

if(isset($_POST['username']) && isset($_POST['password'])){
$username = addslashes($_POST['username']);
$sql = mysql_query("SELECT * FROM users WHERE username = '".$username."' LIMIT 1") or die(mysql_error());
$row2s = mysql_fetch_array($sql);
$password = HoloHash($_POST['password'], $row2s[username]);
$remember_me = $_POST['_login_remember_me'];

if(empty($username) || empty($password)){
$login_error = "Perfavore non lasciare spazi bianchi.";
} else {
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' LIMIT 1") or die(mysql_error());
$rows = mysql_num_rows($sql);
if($rows < 1){
$login_error = "Username o Password invalidi";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$check = mysql_query("SELECT * FROM bans WHERE value = '".$username."' OR value = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$is_banned = mysql_num_rows($check);
if($is_banned < 1){
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($remember_me == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", sha1("zomq".$_SESSION['password']), time()+60*60*24*100, "/");
}
header("location:security_check.php"); exit;
} else {
$bandata = mysql_fetch_assoc($check);
$reason = $bandata['reason'];
$expire = $bandata['expire'];


if($stamp_now < $stamp_expire){
$login_error = "Sei Stato Bannato! La Ragione Del Ban e \"".$reason."\". Scade Il ".$expire.".";
} else { // ban expired
//mysql_query("DELETE FROM users_bans WHERE userid = '".$userid."' OR ipaddress = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($remember_me == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", sha1("zomq".$_SESSION['password']), time()+60*60*24*100, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE username = '".$username."'") or die(mysql_error());
header("location:security_check.php"); exit;
}
}
}
}
}







if(isset($_GET['error'])){
$errorno = $_GET['error'];
if($errorno == 1){
$login_error = "Invalida Username o Password.";
} elseif($errorno == 2){
$login_error = "Invalida Username o Password.";
} elseif(isset($_GET['ageLimit']) && $_GET['ageLimit'] == "true"){
$login_error = "Sei troppo giovane per Giocare Qui.";
}
}


include('templates/frontpage/subheader.php');
include('templates/frontpage/header.php');
include('bg.php');

?>

<div class="logincontainer">

<?php
if(isset($login_error)){
echo "\n<div class=\"action-error flash-message\">\n <div class=\"rounded\">\n <ul>\n <li>".$login_error."</li>\n </ul>\n </div>\n</div>\n";
}
?>
<div class="cbb loginbox clearfix">
<h2 class="title"><?php echo $locale['login']; ?></h2>
<div class="box-content clearfix" id="login-habblet">

<form action="login.php?do=process_login" method="post" class="login-habblet">

<ul>
<li>
<b>Nome:</b> <label for="login-username" class="login-text"><? echo $locale['username']; ?></label>
<input tabindex="1" type="text" class="login-field" name="username" id="login-username" value="" />
</li>

<li>
<b>Password:</b>
<label for="login-password" class="login-text"><? echo $locale['password']; ?></label>
<input tabindex="2" type="password" class="login-field" name="password" id="login-password" /> <input type="submit" value="Entra" class="submit" id="login-submit-button"/> <a href="#" id="login-submit-new-button" class="new-button" style="margin-right: 0;display:none"><b style="padding-right: 10px; padding-right: 7px; width: 55px">Entra</b><i></i></a> </li><br><br> </li>
<li id="remember-me" class="no-label">
<input tabindex="4" type="checkbox" name="_login_remember_me" id="login-remember-me" value="true"/>
<label for="login-remember-me">Ricordami</label>
</li>
<li class="no-label">
<a href="forgot.php" id="forgot-password"><span>Non ricordo Nome/Password!</span></a>
</li>
</ul>
</form>

</div>
</div>
<div id="remember-me-notification" class="bottom-bubble" style="display:none;">
<div class="bottom-bubble-t"><div></div></div>
<div class="bottom-bubble-c">


Cliccando qui, deciderai di restare connesso finchè non cliccherai su 'Esci' .
</div>
<div class="bottom-bubble-b"><div></div></div>
</div>
<script type="text/javascript">
L10N.put("authentication.form.name", "Nome");
L10N.put("authentication.form.password", "Password");
HabboView.add(function() {LoginFormUI.init();});
HabboView.add(function() {RememberMeUI.init("newfrontpage");});
</script>










</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>



<div class="habblet-container ">

<div id="frontpage-image" style="background-image: url('/llijo.png')"><div id="partner-logo"></div></div>



<br>
<br>
<center>
<a href=register.php><img src="/registerindex.png" border="0" alt="***AmerixCms v4***"></a>"


</div>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


</div>
<div id="column2" class="column">
</div>
<div id="column-footer">









</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


<div class="habblet-container ">





</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


</div>
<?php



} else {
header("location:welcome.php");
}

?>







Cosa significa accumunamento?
--------------- AGGIUNTA AL POST ---------------
Chi mi aiuta???!!!
 
Ultima modifica: