//********************************** // DISCORAMA.FR // Code HTML/PHP: PROXIS Interactif // Août 2008 //********************************** // Contact v0.2 //********************************** require_once("includes/config.inc.php"); require_once("includes/main.inc.php"); require_once("includes/functions.inc.php"); $mycon = openDB(); require_once("caddie.inc.php"); session_register("compte"); $compte = $_SESSION['compte']; include_once("includes/login.inc.php"); $action = getVar("action"); if ($action=="send") { $fnom = getVar("fnom"); $fprenom = getVar("fprenom"); $femail = getVar("femail"); $femail = secureVar($femail,true,true); $fsujet = getVar("fsujet"); $ftexte = getVar("ftexte"); if(isset($_SESSION['captcha_keystring']) && $_SESSION['captcha_keystring'] == $_POST['keystring']) { if ($fnom!="" && $fprenom!="" && $fsujet!="" && $ftexte!="" && $femail!="" && isValidEmail($femail)) { $header = "From: $femail\nReply-To: $femail\nX-Mailer: PHP"; $subject = $fsujet; $message = "Contact de: $fnom $fprenom\n\n"; $message .= $ftexte."\n\n"; mail($destinataire_eml,$subject,$message,$header); $retmess = "Votre message a été envoyé."; $fnom = ""; $fprenom = ""; $femail = ""; $fsujet = ""; $ftexte = ""; } else $retmess = "Remplissez tous les champs, SVP."; } else $errmess = "Code incorrect."; } ?>