In 1 l'error reportin è 2039, nell'altro 6135.
vi posto l'errore:
Warning: Cannot modify header information - headers already sent by (output started at /home/images/public_html/index.php:13) in /home/images/public_html/data/login.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/images/public_html/index.php:13) in /home/images/public_html/data/login.php on line 36
Ciao pippo ... attendi il reindirizzamento
e il contenuto dei due file che segnala
index.php
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK HREF="style.css" TYPE="text/css" REL="stylesheet">
</HEAD>
<BODY>
<table cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="width:766px; height:780px">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:42px; height:780px"></td>
<td style="width:676px; height:780px">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:676px; height:119px; background-image: url(images/grey_bg.gif); background-repeat:no-repeat">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:560px; height:119px">
<br style="line-height:48px">
[img]images/c_name.gif[/img]
</td>
<td style="width:116px; height:119px">
<br style="line-height:66px">
[url="index.php?p=home"][img]images/link.gif[/img][/url][url="#"][img]images/link1.gif[/img][/url][url="#"][img]images/link2.gif[/img][/url] </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width:676px; height:563px">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:226px; height:563px">
[url="index.html"][img]images/back.gif[/img][/url][img]images/pic1_1.gif[/img]
[img]images/pic1_2.gif[/img]
[url="index-2.html"][img]images/comp.gif[/img][/url][url="index-3.html"][img]images/srv.gif[/img][/url]
[url="index-4.html"][img]images/sol.gif[/img][/url][url="index-5.html"][img]images/cont.gif[/img][/url]
</td>
<td style="width:450px; height:563px; background-color:#F8F8F8; background-image:url(images/top.gif); background-repeat:no-repeat">
<div id="davide">
<?php
include("conf.php"); ?>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width:676px; height:98px" class="policy">
<br style="line-height:45px">
YourCompany.Com © 2006 [img]images/img.gif[/img] [url="index-6.html"]Privacy Policy[/url] </td>
</tr>
</table>
</td>
<td style="width:48px; height:780px"></td>
</tr>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
e login.php
Codice PHP:
<?php
include_once("./inc/config.php");
include_once("./inc/auth.lib.php");
list($status, $user) = auth_get_status();
if($status == AUTH_NOT_LOGGED){
$uname = strtolower(trim($_POST['uname']));
$passw = strtolower(trim($_POST['passw']));
if($uname == "" or $passw == ""){
$status = AUTH_INVALID_PARAMS;
}else{
list($status, $user) = auth_login($uname, $passw);
if(!is_null($user)){
list($status, $uid) = auth_register_session($user);
}
}
}
switch($status){
case AUTH_LOGGED:
header("Refresh: 1;URL=./index.php?p=home");
echo '<div align="center">Sei gia connesso ... attendi il reindirizzamento</div>';
break;
case AUTH_INVALID_PARAMS:
header("Refresh: 1;URL=./index.php?p=home");
echo '<div align="center">Hai inserito dati non corretti ... attendi il reindirizzamento</div>';
break;
case AUTH_LOGEDD_IN:
switch(auth_get_option("TRANSICTION METHOD")){
case AUTH_USE_LINK:
header("Refresh: 1;URL=./index.php?p=home&uid=".$uid);
break;
case AUTH_USE_COOKIE:
header("Refresh: 1;URL=./index.php?p=home");
setcookie('uid', $uid, time()+3600*365);
break;
case AUTH_USE_SESSION:
header("Refresh: 1;URL=./index.php?p=home");
$_SESSION['uid'] = $uid;
break;
}
echo '<div align="center">Ciao '.$user['name'].' ... attendi il reindirizzamento</div>';
break;
case AUTH_FAILED:
header("Refresh: 1;URL=./index.php?p=home");
echo '<div align="center">Fallimento durante il tentativo di connessione ... attendi il reindirizzamento</div>';
break;
}
?>