if($action=="connectte"){
session_start();
require("fonctionnement/urationconfig.php3");
$db = mysql_connect($adress_sql,$login_sql,$pass_sql);
mysql_select_db($nom_base,$db);
$passe=addSlashes($passe);
$passe=htmlspecialchars($passe);
$email=htmlspecialchars($email);
if($telephone){
$telephone=addSlashes($telephone);
$telephone=htmlspecialchars($telephone);
$telephone=str_replace(" ","",$telephone);
$telephone=str_replace(".","",$telephone);
$telephone=str_replace("-","",$telephone);
$telephone=str_replace("_","",$telephone);
mysql_query("update client set portable='$telephone' where passe='$passe' and email='$email'");
}
$a=mysql_query("SELECT * from client where email='$email' and passe='$passe'");
$nb=mysql_numrows($a);
if($nb){
$resultat=mysql_fetch_object($a);
$_SESSION['emailcpt']=$email;
$email_cpt=$email;
$id_cpt=$resultat->id;
$_SESSION['idcpt']=$resultat->id;
$identification=$_SESSION['identification'];
mysql_query("update panier_provisoire set numeroclient='$id_cpt', email='$email_cpt', identification='' where identification='$identification'");
mysql_query("update panier_provisoire2 set numeroclient='$id_cpt', email='$email_cpt', identification='' where identification='$identification'");
if($resultat->idduparrain){
$aa=mysql_query("SELECT id,id_article from panier_provisoire where email='$email_cpt' and numeroclient='$id_cpt'");
while($resus=mysql_fetch_object($aa)){
$bb=mysql_query("SELECT prixfilleul,typeticket from produit where id='$resus->id_article'");
$resul=mysql_fetch_object($bb);
if($resul->prixfilleul){
mysql_query("update panier_provisoire set prix='$resul->prixfilleul' where numeroclient='$id_cpt' and email='$email_cpt' and statut=0");
}
}
}
$ip=$REMOTE_ADDR;
$datexx=date("Y-m-d");
$heurexx = date("H:i:s");
mysql_query("INSERT INTO logs VALUES('' ,'$id_cpt' ,'Connexion compte - page annonce' ,'$datexx' ,'$heurexx' ,'$email_cpt','$langue','$ip','1')");
$identification="";
$_SESSION['identification']=$identification;
}
}
require ("fonctionnement/entete_pre.php3");?>
require("fonctionnement/urationconfig.php3");
$db = mysql_connect($adress_sql,$login_sql,$pass_sql);
mysql_select_db($nom_base,$db);
if(!$sitee){
$a=mysql_query("SELECT titresite,meta from pagegardebis where langue='$langue' and statut=1 limit 0,1");
}
if($sitee==1){
$a=mysql_query("SELECT titresite,meta from pagegarde2 where langue='$langue' and statut=1 limit 0,1");
}
if($sitee==2){
$a=mysql_query("SELECT titresite,meta from pagegarde3 where langue='$langue' and statut=1 limit 0,1");
}
$nb=mysql_numrows($a);
if($nb) {
if($resultat=mysql_fetch_object($a)){
$title=stripSlashes($resultat->titresite);
$metax=stripSlashes($resultat->meta);
$pasmeta=1;
$arrete=1;
?>
} }
?> if(!$sitee) require("fonctionnement/entete.php3");?>
if($sitee==1) require("fonctionnement/entete-ce.php3");?>
if($sitee==2) require("fonctionnement/entete-pro.php3");?>
$doss="photo-$dossiercible";
?>
if($title){ ?> echo $title;?> }else{ ?> echo $titl;?> } ?>
if(!$sitee) require("fonctionnement/langue.php3");?>
if(!$sitee) require("fonctionnement/banniere.php3");?>
if($sitee==1) require("fonctionnement/bannierece.php3");?>
if($sitee==2) require("fonctionnement/bannierepro.php3");?>
if(!$sitee){ ?>
require("fonctionnement/garde-acceuilbis.php3");?> |
$fo=mysql_query("SELECT * from traduction_accueil where langue='$langue' and numero=1");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
echo $texte;
// titre trouveur?>
$fo=mysql_query("SELECT * from traduction_accueil where langue='$langue' and numero=3");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
echo $texte;
// texte trouveur?>
// formulaire?>
$fo=mysql_query("SELECT * from traduction_accueil where langue='$langue' and numero=5");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
echo $texte;
// rappel trouveur
?>
$fo=mysql_query("SELECT * from traduction_accueil where langue='$langue' and numero=6");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
echo $texte;
// titre acheteur?>
|
|
|
|
$fo=mysql_query("SELECT * from traduction_accueil where langue='$langue' and numero=2");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
echo $texte;
// titre acheteur?>
$fo=mysql_query("SELECT * from traduction_accueil where langue='$langue' and numero=4");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
echo $texte;
// texte acheteur?> $fo=mysql_query("SELECT * from traduction_achat where langue='$langue' and numero=55");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
// decouvrir les tickets
?>
echo $texte;?>
|
$fo=mysql_query("SELECT * from traduction_accueil where langue='$langue' and numero=7");
$form=mysql_fetch_object($fo);
$texte=stripSlashes($form->texte);
echo $texte;
// titre acheteur?>
|
} ?>
if($sitee){ ?>
$rubrique=1;?>
if($sitee==1){
require("fonctionnement/garde-acceuilce.php3");
require("fonctionnement/bas-ce.php3");
require("fonctionnement/garde-acceuilce2.php3");
}
if($sitee==2){
require("fonctionnement/garde-acceuilpro.php3");
require("fonctionnement/bas-pro.php3");
require("fonctionnement/garde-acceuilpro2.php3");
}
?> |
} ?>
// require("fonctionnement/module_boutique.php3");?>
if(!$sitee) require ("fonctionnement/fin_page.php3");?>
if($sitee==1) require ("fonctionnement/fin_pagece.php3");?>
if($sitee==2) require ("fonctionnement/fin_pagepro.php3");?>
require ("fonctionnement/fin_page_ext.php3");?>