Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="headerfix" id="orcamento">
- <section>
- <div class="wrapper text-center padding-default-top padding-default-bottom">
- <h1 class="section-title wow fadeInDown">Orçamento</h1>
- <p class="section-subtitle wow fadeInUp" data-wow-delay="0.2s">
- Como podemos te ajudar?<br/>
- Solicite um orçamento e dê o primeiro passo na conquista da sua beleza.
- </p>
- <form action="" role="form" method="post">
- <?php
- $prefixo_assunto = '[Solicitaçao de orçamento]';
- $email_admin = 'raphael_360@hotmail.com';
- if($_SERVER['REQUEST_METHOD'] == 'POST') {
- $nome = stripslashes(trim($_POST['form-nome']));
- $email = stripslashes(trim($_POST['form-email']));
- $observacao = stripslashes(trim($_POST['form-observacao']));
- $tipo = stripslashes(trim($_POST['orcamento-tipo']));
- $procedimentos = stripslashes(trim($_POST['form-procedimentos']));
- $telefone = stripslashes(trim($_POST['form-tel']));
- $pattern = '/[\r\n]|Content-Type:|Bcc:|Cc:/i';
- if (preg_match($pattern, $nome)) {
- die("Header injection detected");
- }
- if($nome && $email && $tipo && $telefone){
- $subject = "$prefixo_assunto $tipo - $nome";
- $body = "Nome: <b>$nome</b><br/>Telefone: <b>$telefone</b> <br /><br />Email: <b>$email</b> <br /> Tipo: <b>$tipo</b> <br /> Procedimentos: <b>$procedimentos</b> <br /> Observaçoes: <b>$observacao</b>";
- $headers = "MIME-Version: 1.1" . PHP_EOL;
- $headers .= "Content-type: text/html; charset=utf-8" . PHP_EOL;
- $headers .= "Content-Transfer-Encoding: 8bit" . PHP_EOL;
- $headers .= "Date: " . date('r', $_SERVER['REQUEST_TIME']) . PHP_EOL;
- $headers .= "Message-ID: <" . $_SERVER['REQUEST_TIME'] . md5($_SERVER['REQUEST_TIME']) . '@' . $_SERVER['SERVER_NAME'] . '>' . PHP_EOL;
- $headers .= "From: " . "=?UTF-8?B?".base64_encode($nome)."?=" . "<contato@raphaelbrandao.com>" . PHP_EOL;
- $headers .= "Return-Path: $email_admin" . PHP_EOL;
- $headers .= "Reply-To: contato@raphaelbrandao.com" . PHP_EOL;
- $headers .= "X-Mailer: PHP/". phpversion() . PHP_EOL;
- $headers .= "X-Originating-IP: " . $_SERVER['SERVER_ADDR'] . PHP_EOL;
- mail($email_admin, "=?utf-8?B?".base64_encode($subject)."?=", $body, $headers);
- $email_enviado = true;
- } else {
- $erro_envio = true;
- }
- }
- ?>
- <?php if(!empty($email_enviado)) {
- echo "<script>alert('Solicitaçao enviada! Agradecemos e retornaremos em breve.');</script>";
- echo "<script>location.href='<?php echo get_settings('home'); ?>';</script>";
- }
- else {
- if (!empty($erro_envio)) {
- echo "<script>alert('Ocorreu algum erro, tente novamente mais tarde.');</script>";
- echo "<script>location.href='<?php echo get_settings('home'); ?>';</script>";
- }
- }
- ?>
- <div class="form row padding-default-top">
- <div class="col-6 padding-supersmall-right padding-small-bottom padding-phablet-zero wow fadeInDown" data-wow-delay="0.3s">
- <input name="form-nome" id="form-nome" type="text" placeholder="Seu nome" required>
- </div>
- <div class="col-6 padding-supersmall-left padding-small-bottom padding-phablet-zero wow fadeInDown" data-wow-delay="0.3s">
- <strong class="section-paragraph text-left display-block padding-supersmall-bottom">Tipo</strong>
- <div class="row">
- <div class="radio col-4">
- <input id="orcamento-tipo1" value="Corporal" name="orcamento-tipo" type="radio" checked>
- <label for="orcamento-tipo1">Corporal</label>
- </div>
- <div class="radio col-4">
- <input id="orcamento-tipo2" value="Facial" name="orcamento-tipo" type="radio">
- <label for="orcamento-tipo2">Facial</label>
- </div>
- <div class="radio col-4">
- <input id="orcamento-tipo3" value="Beleza" name="orcamento-tipo" type="radio">
- <label for="orcamento-tipo3">Beleza</label>
- </div>
- </div>
- </div>
- <div class="col-6 padding-supersmall-right padding-small-bottom padding-phablet-zero wow fadeInDown" data-wow-delay="0.3s">
- <input name="form-tel" id="form-tel" type="text" placeholder="Fone" required>
- </div>
- <div class="col-6 padding-supersmall-left padding-small-bottom padding-phablet-zero wow fadeInDown" data-wow-delay="0.3s">
- <input id="form-procedimentos" name="form-procedimentos" type="text" placeholder="Quais procedimentos?">
- </div>
- <div class="col-6 padding-supersmall-right padding-small-bottom padding-phablet-zero wow fadeInDown" data-wow-delay="0.3s">
- <input name="form-email" id="form-email" type="email" placeholder="Email" required>
- </div>
- <div class="col-6 padding-supersmall-left padding-small-bottom padding-phablet-zero wow fadeInDown" data-wow-delay="0.3s">
- <input id="form-observacao" name="form-observacao" type="text" placeholder="Alguma observação?">
- </div>
- <div class="col-12 padding-medium-top wow fadeInDown" data-wow-delay="0.6s">
- <button class="button" type="submit">Enviar</button>
- </div>
- </div>
- </form>
- </div>
- </section>
- </div>
- <div class="headerfix" id="contato">
- <form action="" role="form" method="post">
- <?php
- $prefixo_assunto = '[Contato através do site]';
- $email_admin = 'raphael@growthinternet.com';
- if($_SERVER['REQUEST_METHOD'] == 'POST') {
- $nome = stripslashes(trim($_POST['form-nome']));
- $assunto = stripslashes(trim($_POST['form-assunto']));
- $mensagem = stripslashes(trim($_POST['form-mensagem']));
- $telefone = stripslashes(trim($_POST['form-tel']));
- $pattern = '/[\r\n]|Content-Type:|Bcc:|Cc:/i';
- if (preg_match($pattern, $nome)) {
- die("Header injection detected");
- }
- if($nome && $assunto && $mensagem && $telefone){
- $subject = "$prefixo_assunto $nome";
- $body = "Nome: <b>$nome</b><br/>Telefone: <b>$telefone</b> <br /><br />Assunto: <b>$assunto</b> <br /> Mensagem: <b>$mensagem</b>";
- $headers = "MIME-Version: 1.1" . PHP_EOL;
- $headers .= "Content-type: text/html; charset=utf-8" . PHP_EOL;
- $headers .= "Content-Transfer-Encoding: 8bit" . PHP_EOL;
- $headers .= "Date: " . date('r', $_SERVER['REQUEST_TIME']) . PHP_EOL;
- $headers .= "Message-ID: <" . $_SERVER['REQUEST_TIME'] . md5($_SERVER['REQUEST_TIME']) . '@' . $_SERVER['SERVER_NAME'] . '>' . PHP_EOL;
- $headers .= "From: " . "=?UTF-8?B?".base64_encode($nome)."?=" . "<raphael_360@hotmail.com>" . PHP_EOL;
- $headers .= "Return-Path: $email_admin" . PHP_EOL;
- $headers .= "Reply-To: raphael_360@hotmail.com" . PHP_EOL;
- $headers .= "X-Mailer: PHP/". phpversion() . PHP_EOL;
- $headers .= "X-Originating-IP: " . $_SERVER['SERVER_ADDR'] . PHP_EOL;
- mail($email_admin, "=?utf-8?B?".base64_encode($subject)."?=", $body, $headers);
- $email_enviado = true;
- } else {
- $erro_envio = true;
- }
- }
- ?>
- <?php if(!empty($email_enviado)) {
- echo "<script>alert('Contato enviado com sucesso! Agradecemos e retornaremos em breve.');</script>";
- echo '<script>location.href="index.php";</script>';
- }
- else {
- if (!empty($erro_envio)) {
- echo "<script>alert('Ocorreu algum erro, tente novamente mais tarde.');</script>";
- echo '<script>location.href="index.php";</script>';
- }
- }
- ?>
- <section>
- <div class="wrapper padding-default-top">
- <h1 class="section-title padding-default-top text-center wow fadeInDown">Contato</h1>
- <p class="section-subtitle text-center wow fadeInUp" data-wow-delay="0.2s">
- Fale com a gente, nos mande uma mensagem, tire suas dúvidas e nos siga em nossas redes sociais.
- </p>
- <div class="row small-wrap padding-default-top">
- <div class="col-7 contact-form float-right">
- <div class="form">
- <div class="padding-small-bottom wow fadeInRight" data-wow-delay="0.6s">
- <input name="form-nome" id="form-nome" type="text" placeholder="Seu nome" required>
- </div>
- <div class="padding-small-bottom wow fadeInRight" data-wow-delay="0.6s">
- <input name="form-tel" id="form-tel" type="text" placeholder="Fone" required>
- </div>
- <div class="padding-small-bottom wow fadeInRight" data-wow-delay="0.6s">
- <input name="form-assunto" id="form-assunto" type="text" placeholder="Assunto" required>
- </div>
- <div class="padding-small-bottom wow fadeInRight" data-wow-delay="0.6s">
- <textarea name="form-mensagem" id="form-mensagem" cols="30" rows="10" placeholder="Sua mensagem" required></textarea>
- </div>
- <div class="text-center padding-small-top wow fadeInUp" data-wow-delay="0.8s">
- <button class="button" type="submit">Enviar</button>
- </div>
- </div>
- </div>
- <div class="col-5 float-left contact-info">
- <strong class="wow fadeInLeft" data-wow-delay="0.4s">Endereço</strong>
- <p class="wow fadeInLeft" data-wow-delay="0.4s">
- Emp. Epitácio Pessoa<br/>
- Av Epitácio Pessoa - João Pessoa PB
- </p>
- <strong class="wow fadeInLeft" data-wow-delay="0.4s">Telefones</strong>
- <p class="wow fadeInLeft" data-wow-delay="0.4s">
- +55 83 3031.4432 / +55 83 3031.3212<br/>
- +55 83 9921.2111
- </p>
- <strong class="wow fadeInLeft" data-wow-delay="0.6s">Siga-nos</strong>
- <a href="#" class="wow fadeInLeft" data-wow-delay="0.6s">
- <img src="<?php bloginfo('template_directory'); ?>/img/ic-facebook2.svg" data-wow-delay="0.6s" alt="">
- </a>
- <a href="#" class="wow fadeInLeft" data-wow-delay="0.6s">
- <img src="<?php bloginfo('template_directory'); ?>/img/ic-twitter2.svg" alt="">
- </a>
- <a href="#" class="wow fadeInLeft" data-wow-delay="0.6s">
- <img src="<?php bloginfo('template_directory'); ?>/img/ic-instagram2.svg" alt="">
- </a>
- </div>
- </div>
- </div>
- </section>
- </form>
- </div>
Add Comment
Please, Sign In to add comment