Eléphant du PHP |
257 Messages
11 janv. 2013, 12:37
bonjour voilà j'ai une erreur et je n'arrive pas à trouver la solution
Warning: Cannot modify header information - headers already sent by (output started at /customers/7/c/4/h-immo.be/httpd.www/lang/francais-lang.php:47) in /customers/7/c/4/h-immo.be/httpd.www/accueil.php on line 153
Merci pour votre aide
<?PHP
if(!isset($_SESSION))
{
session_start();
}
include'lang/multi-lang.php';
?>
<!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">
<head>
<link rel="shortcut icon" href="design/favicon.ico" >
<link rel="icon" type="image/gif" href="design/animated_favicon1.gif" >
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<title><?PHP echo $titre; ?>,<?PHP echo $connexion; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="verification" content="67f5d9617d8cc4d2f456905ff27459db" />
<meta name="Content-Language" content="fr">
<meta name="Description" content="Vos annonce gratuit en immobilière">
<meta name="Keywords" content="annonce gratuit immobilière,vente de Maison, location , tous bien , terrain à vendre, Gîte , Péniche à vendre.">
<meta name="Subject" content="Immobilier à vendre et à louer en Belgique">
<meta name="Copyright" content="DKL">
<meta name="Author" content="paquot">
<meta name="Identifier-Url" content="http://www.h-immo.be">
<meta name="Reply-To" content="[email protected]">
<meta name="Revisit-After" content="15 days">
<meta name="Robots" content="all">
<meta name="Rating" content="general">
<meta name="Distribution" content="global">
<meta name="DC.Title" content="h-immo">
<meta name="DC.Content-Type" content="UTF-8">
<meta name="DC.Content-Language" content="fr">
<meta name="DC.Description" content="Vos annonce gratuit en immobilière">
<meta name="DC.Keywords" content="annonce gratuit immobilière,vente de Maison, location , tous bien , terrain à vendre, Gîte , Péniche à vendre.">
<meta name="DC.Subject" content="immobilière,vente, location">
<meta name="DC.Copyright" content="DKL">
<meta name="DC.Author" content="paquot">
<meta name="DC.Identifier-Url" content="http://www.h-immo.be">
<meta name="DC.Reply-To" content="[email protected]">
</head>
<body>
<div id="main_container">
<div id="header">
<?PHP include'logo.php'; ?>
<div id="menu">
<ul>
<li><a class="current" href="accueil.php" title="<?PHP echo $home; ?>"><?PHP echo $home; ?></a></li>
<li><a href="add_annonce_immo.php" title="<?PHP echo $ajouterannonce; ?>"><?PHP echo $annonce; ?></a></li>
<li><a href="recherche.php" title="<?PHP echo $Valider_recherche; ?>"><?PHP echo $Valider_recherche; ?></a></li>
<li><a href="contact.php" title="<?PHP echo $contact; ?>"><?PHP echo $contact; ?></a></li>
</ul>
</div>
</div>
<div id="pub"></div>
<div id="main_content">
<div id="left_content">
<h2>PUB</h2>
<div class="news">
<div align="center">
<div align="center">
<p>
<!-- DEBUT du code HTML zanox-affiliate -->
<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->
<a href="http://ad.zanox.com/ppc/?23733095C359628949T"><img src="http://ad.zanox.com/ppv/?23733095C359628949" align="bottom" width="236" height="60" border="0" hspace="1" alt="FR Image Banner 236 x 60"></a>
<!-- FIN du code HTML zanox-affiliate -->
</p>
<p>
<!-- DEBUT du code HTML zanox-affiliate -->
<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->
<a href="http://ad.zanox.com/ppc/?23733113C253393539T"><img src="http://ad.zanox.com/ppv/?23733113C253393539" align="bottom" width="234" height="60" border="0" hspace="1" alt="Autolening Image Banner 234 x 60"></a>
<!-- FIN du code HTML zanox-affiliate -->
</p>
<p>
<!-- DEBUT du code HTML zanox-affiliate -->
<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->
<img src="http://ad.zanox.com/ppv/?23733484C1389772936" align="bottom" width="1" height="1" border="0" hspace="1"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=234 HEIGHT=60><PARAM NAME=movie VALUE="http://banners.one.com/bannere/benl/234x60-benl.swf?clickTag=http://ad.zanox.com/ppc/?23733484C1389772936&ULP="><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#ffffff><EMBED src="http://banners.one.com/bannere/befr/234x60-befr.swf?clickTag=http://ad.zanox.com/ppc/?23733484C1389772936&ULP=" quality=high bgcolor=#ffffff width=234 height=60 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>
<!-- FIN du code HTML zanox-affiliate -->
</p>
<p>
<!-- DEBUT du code HTML zanox-affiliate -->
<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->
<img src="http://ad.zanox.com/ppv/?23733490C1639509569" align="bottom" width="1" height="1" border="0" hspace="1"><script language="javascript" src="http://ad.zanox.com/ppv/images/programs/flash_load/flash_loader_ng.js"></script><script type="text/javascript">zxFlash("http://www.stormcba.nl/Essent/EssentBEaugustus2012/Banners/FR/essent_juli2012_sales_1_234x60_FR.swf", "http://www.stormcba.nl/Essent/EssentBEaugustus2012/Banners/FR/essent_juli2012_sales_1_234x60_FR.jpg", 234, 60, "opaque", "http://ad.zanox.com/ppc/?23733490C1639509569&ULP=", "XXX");</script><noscript><a href="http://ad.zanox.com/ppc/?23733490C1639509569&ULP=" target="_blank"><img src="http://www.stormcba.nl/Essent/EssentBEaugustus2012/Banners/FR/essent_juli2012_sales_1_234x60_FR.jpg" border="0" width="234" height="60" alt="FR Fallback Image"></a></noscript>
<!-- FIN du code HTML zanox-affiliate -->
</p>
<p>
<!-- DEBUT du code HTML zanox-affiliate -->
<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->
<a href="http://ad.zanox.com/ppc/?23733516C100195051T"><img src="http://ad.zanox.com/ppv/?23733516C100195051" align="bottom" width="234" height="60" border="0" hspace="1" alt="Pret Perso Gif 234 x 60"></a>
<!-- FIN du code HTML zanox-affiliate -->
</p>
</div>
</div>
</div>
</div><!--end of left content-->
<div id="right_content">
<div class="rech_info_box">
<div class="contact_info_title"><?PHP echo $connexion; ?></div><!------Insetions des pages ---->
<?PHP
include'sources/config.php';
//On verifie que le formulaire a ete envoye
if(isset($_POST['email1'], $_POST['pass1']) and $_POST['email1']!='')
{
//On enleve lechappement si get_magic_quotes_gpc est active
if(get_magic_quotes_gpc())
{
$_POST['email1'] = stripslashes($_POST['email1']);
$_POST['pass1'] = stripslashes($_POST['pass1']);
}
$email1 = mysql_real_escape_string($_POST['email1']);
$pass1 = mysql_real_escape_string(md5($_POST['pass1']));
if(preg_match('#^(([a-z0-9!\#$%&\\\'*+/=?^_`{|}~-]+\.?)*[a-z0-9!\#$%&\\\'*+/=?^_`{|}~-]+)@(([a-z0-9-_]+\.?)*[a-z0-9-_]+)\.[a-z]{2,}$#i',$_POST['email1']))
{
//On verifie sil ny a pas deja un utilisateur inscrit avec l' email choisis
$texts_exist=mysql_query("SELECT * FROM comptes WHERE pass='".$pass1."' AND email='".$email1."'")
or die (mysql_error());
$test_nb=mysql_num_rows($texts_exist);
if(!$test_nb==0)
{
//Creation idm session
$tail = 20;
$lett = "abcdefghijklmnopqrstuvwxyz0123456789";
srand(time());
for ($i=0;$i<$tail;$i++)
{
@$idm.=substr($lett,(rand()%(strlen($lett))),1);
}
$ipass = $_SERVER['REMOTE_ADDR'];
$repaqui= date("Y-m-d");
$repaheure= date("H:i:s");
if($form==0){
mysql_query("UPDATE comptes SET idm='".$idm."', ip='".$ipass."', quipass='".$repaqui."', heurepass='".$repaheure."'
WHERE pass='".$pass1."' AND email='".$email1."'") or die (mysql_error());
//On enregistre son pseudo dans la session email et son identifiant dans la session
$_SESSION['email'] = $email1;
$_SESSION['password'] = $pass1;
header('Location: membre.php');
ob_end_clean();
//Si ca a fonctionne, on naffiche pas le formulaire
$form = FALSE;
}
else
{
//Sinon on dit quil y a eu une erreur controle password email
$form = TRUE;
$message = 'Une erreur de connexion 2.';
}
}
else
{
//Sinon on dit quil y a eu une erreur controle password email
$form = TRUE;
$message = 'Une erreur de connexion.';
}
}
else
{
//Sinon on dit quil y a eu une erreur controle password email
$form = TRUE;
$message = 'L\'email est incorrect.';
}
}
else
{
$form = TRUE;
}
if($form)
{
//On affiche un message sil y a lieu
if(isset($message))
{
echo '<div class="message" style="color:red;text-align:center;"><b>'.$message.'</b></div>';
}
//On affiche le formulaire
echo' <div align="center">
<form method="post" action="'.$_SERVER['PHP_SELF'].'">
<table style="width:350px;border:0;">
<tr>
<td style="height:180px;">
<table style="width:100%; border:0px;">
<tr>
<td width="32%"><font><b>'.$email_lang.'</b></font></td>
<td width="68%">';
?>
<input class="contact_input" type="text" name="email1" value="<?php if(isset($_POST['email1'])){echo $_POST['email1'];} ?>" style="width:160px;"">
<?PHP
echo'</td>
</tr>
<tr>
<td width="32%"><font><b>'.$password.'</b></font></td>
<td width="68%">';
?>
<input class="contact_input" type="password" name="pass1" value="<?php if(isset($_POST['pass1'])){echo $_POST['pass1'];} ?>" style="width:160px;">
<?PHP
echo'</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td style="height:26px; text-align:center">
<input type="submit" name="valider" value="'.$valide.'">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>';
}
include_once'special/liens.php';
?>
</div><!-------fin de l'insertion des pages------>
</div><!--end of right content-->
<div style=" clear:both;"></div>
</div><!--end of main content-->
<div id="footer">
<div class="copyright">
<div align="left"><b>
H-IMMO Créateur DLK © 2006 - <?php echo date('Y'); //affichera l'année actuelle sur 4 chiffres ?> </b>
<a href="http://pretty-rss.snyke.com/"><img src="http://pretty-rss.snyke.com/img/pretty-rss-button.png" border="0"></a></div>
</div>
<div class="footer_links">
<a href="#">About us</a>
<a href="#">Privacy policy</a>
<a href="contact.php">Contact us </a>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29296707-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</div> <!--end of main container-->
</body>
</html>