ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/celine-petinger.fr/rappel/ |
Upload File : |
<?php
require "phpmailer/class.phpmailer.php";
$envoi= '0';
$email_rappel = $_GET['email_rappel'];
if(empty($_GET['email_rappel'])) { $email_rappel = $_POST['email_rappel']; }
$company= $_GET['company'];
if(empty($_GET['company'])) { $company= $_POST['company']; }
// $email_rappel ='contact@diabolofraise.com';
if(isset($_POST['nom'])) {
$letel = $_POST['telephone'];
$letel = str_replace ( ' ' , '' , $letel);
$letel = str_replace ( ' ' , '' , $letel);
$nom= $_POST['nom'];
if ((!empty($nom)) AND (preg_match('`[0-9]{10}`',$letel))) {
$mail_destinataire = $email_rappel; //=====Mail client
$mail = new PHPMailer();
$mail->IsMail();
$msg=
'Vous avez reçu une demande de rappel depuis votre site : '.$company.'<br /><br />
<b>Nom / Prénom :</b> ' . $nom.'<br />
<b>Téléphone :</b> ' . $letel;
$mail->AddReplyTo($email_rappel, $company);
$mail->AddAddress($email_rappel);
$mail->SetFrom($email_rappel, $company);
$mail->Subject = "Demande d'information depuis votre site ";
$mail->MsgHTML($msg);
if($mail->Send()) {
$envoi= '1';
} else {
$envoi= '0';
}
}
}
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nous Contacter</title>
<link href="../business/css/font-awesome.min.css" rel="stylesheet">
<style type="text/css">
html, body {
padding: 0;
overflow: auto;
background : transparent;
color : #FFF;
}
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
margin: 0;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
.formulaire {
/* taille et position*/
width: 300px;
margin: 60px auto 30px;
padding: 10px;
position: relative; /* position du bouton de validation*/
/* Styles */
box-shadow:
0 0 1px rgba(0, 0, 0, 0.4),
0 3px 7px rgba(0, 0, 0, 0.4),
inset 0 1px rgba(255,255,255,1),
inset 0 -3px 2px rgba(0,0,0,0.25);
border-radius: 8px;
background: white;
background: -moz-linear-gradient(#eeefef, #ffffff 10%);
background: -ms-linear-gradient(#eeefef, #ffffff 10%);
background: -o-linear-gradient(#eeefef, #ffffff 10%);
background: -webkit-gradient(linear, 0 0, 0 100%, from(#eeefef), color-stop(0.1, #ffffff));
background: -webkit-linear-gradient(#eeefef, #ffffff 10%);
background: linear-gradient(#eeefef, #ffffff 10%);
}
.formulaire .field {
position: relative; /* position icone */
}
.formulaire .field i {/* taille et position */
left: 0px;
top: 0px;
position: absolute;
height: 36px;
width: 36px;
/* Line */
border-right: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 1px 0 0 rgba(255, 255, 255, 0.7);
/* Styles */
color: #777;
text-align: center;
line-height: 42px;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
pointer-events: none;
}
.formulaire input[type=text],
.formulaire input[type=tel] {
font-family: 'Lato', Calibri, Arial, sans-serif;
font-size: 13px;
font-weight: 400;
text-shadow: 0 1px 0 rgba(255,255,255,0.8);
/* taille et position */
width: 100%;
padding: 10px 18px 10px 45px;
/* Styles */
border: none; /* Rsuppression du contour par default*/
box-shadow:
inset 0 0 5px rgba(0,0,0,0.1),
inset 0 3px 2px rgba(0,0,0,0.1);
border-radius: 3px;
background: #f9f9f9;
color: #777;
-webkit-transition: color 0.3s ease-out;
-moz-transition: color 0.3s ease-out;
-ms-transition: color 0.3s ease-out;
-o-transition: color 0.3s ease-out;
transition: color 0.3s ease-out;
}
.formulaire input[type=text] {
margin-bottom: 10px;
}
.formulaire input[type=text]:hover ~ i,
.formulaire input[type=tel]:hover ~ i {
color: #52cfeb;
}
.formulaire input[type=text]:focus ~ i,
.formulaire input[type=tel]:focus ~ i {
color: #42A2BC;
}
.formulaire input[type=text]:focus,
.formulaire input[type=tel]:focus,
.formulaire button[type=submit]:focus {
outline: none;
}
.formulaire .submit {
/* taille et position */
width: 65px;
height: 65px;
position: absolute;
top: 17px;
right: -25px;
padding: 10px;
z-index: 2;
/* Styles */
background: #ffffff;
border-radius: 50%;
box-shadow:
0 0 2px rgba(0,0,0,0.1),
0 3px 2px rgba(0,0,0,0.1),
inset 0 -3px 2px rgba(0,0,0,0.2);
}
.formulaire .submit:after {
/* taille et position */
content: "";
width: 10px;
height: 10px;
position: absolute;
top: -2px;
left: 30px;
/* Styles */
background: #ffffff;
/* Other masks trick */
box-shadow: 0 62px white, -32px 31px white;
}
.formulaire button {
/* taille et position*/
width: 100%;
height: 100%;
margin-top: -1px;
/* Icon styles */
font-size: 1.4em;
line-height: 1.75;
color: white;
/* Styles */
border: none; /* Remove the default border */
border-radius: inherit;
background: #52cfeb;
background: -moz-linear-gradient(#52cfeb, #42A2BC);
background: -ms-linear-gradient(#52cfeb, #42A2BC);
background: -o-linear-gradient(#52cfeb, #42A2BC);
background: -webkit-gradient(linear, 0 0, 0 100%, from(#52cfeb), to(#42A2BC));
background: -webkit-linear-gradient(#52cfeb, #42A2BC);
background: linear-gradient(#52cfeb, #42A2BC);
cursor: pointer;
}
.formulaire button:hover,
.formulaire button[type=submit]:focus {
background: #52cfeb;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
.formulaire button:active {
background: #42A2BC;
box-shadow:
inset 0 0 5px rgba(0,0,0,0.3),
inset 0 3px 4px rgba(0,0,0,0.3);
}
</style>
</head>
<body>
<?php if ($envoi== '0') { ?>
<form class="formulaire" method="post" action="#">
<input type="hidden" class="" name="email_rappel" value="<?php echo$email_rappel ; ?>" />
<input type="hidden" class="" name="company" value="<?php echo$company; ?>" />
<p class="field"><input type="text" name="nom" id="nom" placeholder="VOTRE NOM"><i class="fa fa-user" aria-hidden="true"></i></p>
<p class="field"><input type="tel" name="telephone" id="telephone" placeholder="VOTRE TELEPHONE"><i class="fa fa-phone" aria-hidden="true"></i></p>
<p class="submit"><button type="submit" name="button" id="button" ><i class="icon-arrow-right icon-large"></i></button></p>
</form>
<?php } else { ?>
<p align="center">
<br />
<br />
<br />
<br />
<font face="Arial" size="5">Votre demande a bien été envoyée ! </font>
<br />
<br />
<script type="text/javascript">
parent.window.location.href="../index.php";
</script>
<?php } ?>
</body>
</html>