AnonSec Team
Server IP : 10.111.40.2  /  Your IP : 216.73.217.145
Web Server : Apache
System : Linux webd002.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : comimage ( 586)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/comimage/gletconstructions.com/../batimonte.com/themes/inc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/comimage/gletconstructions.com/../batimonte.com/themes/inc/contact.php
<?php
require(dirname(__FILE__).'/../../inc/tools/configuration.php');

if($_POST['ctrl'] == 1){
	//********************* FORMULAIRE DE CONTACT ************************
	session_start();
	$verifSpam = $_SESSION['captcha'];
	$aVerifier = md5(strtoupper($_POST['usc']));
	if(empty($_POST['nom']) || empty($_POST['prenom']) || empty($_POST['email']) || empty($_POST['message']) || $_POST['usc'] == ""){
		$_SESSION["msg"]=1;
		$_SESSION['formulaire'] = $_POST;
		header("location:".HTTP_SERVEUR."contact-3.php");
		exit();
	}
	else{
		$nom = textLibre($_POST['nom']);
		$prenom = textLibre($_POST['prenom']);
        $email = minuscule($_POST['email']);
        $rue = textLibre($_POST['rue']);
        $codep = textLibre($_POST['codep']);
        $ville = textLibre($_POST['ville']);
        $tel = textLibre($_POST['tel']);
        $message = textareaLibre($_POST['message']);
		$verifEmail = conformEmail($email);
		$_SESSION['formulaire'] = $_POST;
		if($aVerifier != $verifSpam){
			$_SESSION["msg"]=2;
			header("location:".HTTP_SERVEUR."contact-3.php");
			exit();
		}
		elseif($verifEmail != 1){
			$_SESSION["msg"]=3;
			header("location:".HTTP_SERVEUR."contact-3.php");
			exit();
		}
		else{
			unset($_SESSION['captcha']);
			$codehtml="<h1 style=\"text-align:center;font-size:18px;\">FORMULAIRE DE CONTACT</h1>"."\n".
						"<p>Date du message: <span style=\"font-weight:bolder;color:#2B2E30;\">".date("d-m-Y H:i:s")."</span></p>"."\n".
						"<p>Identité : <span style=\"font-weight:bolder;color:#2B2E30;\">".$_POST['par']." ".ucfirst($nom)." ".ucfirst($prenom)."</span></p>" ."\n".
						"<p>Email : <span style=\"font-weight:bolder;color:#2B2E30;\">".$email."</span></p>" ."\n".
						"<p>Adresse : <span style=\"font-weight:bolder;color:#2B2E30;\">".ucfirst($rue)." ".$codep." ".ucfirst($ville)."</span></p>" ."\n".
						"<p>Téléphone : <span style=\"font-weight:bolder;color:#2B2E30;\">".$tel."</span></p>" ."\n".
						"<p>Message : <span style=\"font-weight:bolder;color:#2B2E30;\">".$message."</span></p>" ."\n";
			envoyerUnMail(MAIL_CORRESPONDANCE,"Formulaire de contact",$codehtml);
            //------ envoyer un SMS ----------
           // envoyerSMS($bdd);
            $_SESSION["msg"]=4;
			header("location:".HTTP_SERVEUR."contact-3.php");
			exit();
		}
	}
	//*************************************************************************
}
elseif($_POST['ctrl'] == 2){
    
}
else{
	header("location:".HTTP_SERVEUR);
	exit();
}
?>

AnonSec - 2021