%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/www.atriaqro.com/wp/old/
Upload File :
Create Path :
Current File : /var/www/www.atriaqro.com/wp/old/mensaje3940.php

    <HTML>
<HEAD>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script type="text/javascript" src="js/jquery.js"></script>
    <link rel="stylesheet" type="text/css" href="css/styles.css">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</HEAD>
<BODY>
<?php
// Ingresa tu clave secreta.....
define("RECAPTCHA_V3_SECRET_KEY", '6Lf9XtMaAAAAAPdnrNIm3IItaD4n1RIYVIgV9hVz');
$token = $_POST['token'];
$action = $_POST['action'];
 
// call curl to POST request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://www.google.com/recaptcha/api/siteverify");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('secret' => RECAPTCHA_V3_SECRET_KEY, 'response' => $token)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$arrResponse = json_decode($response, true);
 
// verificar la respuesta
if($arrResponse["success"] == '1' && $arrResponse["action"] == $action && $arrResponse["score"] >= 0.6) {
    // Si entra aqui, es un humano, puedes procesar el formulario
    $Nombre = $_POST["nombre2"];
    $Email = $_POST["email"];
    $Telefono = $_POST["telefono"];
    $Mensaje = $_POST["mensaje"];

    if (isset($_POST["LLAMADA"])){
        $MEDIO = $_POST["LLAMADA"];
    }else if (isset($_POST["VIDEOLLAMADA"])){
        $MEDIO = $_POST["VIDEOLLAMADA"];
    }else if (isset($_POST["CORREO"])){
        $MEDIO = $_POST["CORREO"];
    }else if (isset($_POST["WHATSAPP"])){
        $MEDIO = $_POST["WHATSAPP"];
    }else if (isset($_POST["CITA"])){
        $MEDIO = $_POST["CITA"];
    }

    $Fecha = date("Y-m-d H:i:s");
    require('class_ith.php');
    list($vrNombre,$vrApellido)=fnformatnombre($Nombre);
    $iCl = new inf_ith(true);
    if($iCl->connect_errno == 0){
        $comentario="$Mensaje. (Medio: $MEDIO)";
        $vrLead = " INSERT INTO tb_leads(nombre,apellidos, telefono, correo, medioID, empresaID, proyectoID, fechaRegistro, fechaMod,estatus, comentario) VALUES ('".$vrNombre."','".$vrApellido."','".$Telefono."','".$Email."',10,2,7,now(),now(),'Nuevo','$comentario');";

        $iCl->scr =$vrLead;
        $res = $iCl->qry('{"funcion": "consulta"}');
        $vrBnd = false;
        if($res->numero == 5){
           $vrBnd=true;
        }
   
    }
    $iCl->qrc();




    $Mensaje2 = $Nombre.':<br><br>'.$Mensaje.'<br><hr>Correo: '.$Email.'<br>Cel: '.$Telefono.'<br><br>Solicitó:'.$MEDIO.'<br><br>Fecha: '.$Fecha;

    $cabeceras = 'MIME-Version: 1.0' . "\r\n";
    $cabeceras .= 'Content-type: text/html; charset=utf-8' . "\r\n";
    $cabeceras .= 'From: Cañadas by El Mirador<ventas@canadasdelmirador.com.mx>';


    $enviado = mail("bsy.drt.ventas@gmail.com","Mensaje de ".$Nombre,$Mensaje2,$cabeceras);
    //$enviado = mail("erickl8a.elo@gmail.com","Mensaje de ".$Nombre,$Mensaje2,$cabeceras);
        //  echo "ok!, eres un humano";
    } else {
        // Si entra aqui, es un robot....
      echo "Lo siento, parece que eres un Robot y no se pudieron enviar tus datos";
    }
    ?>
</BODY>

Zerion Mini Shell 1.0