%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/3182/cwd/lacumbrejuriquilla.mx/
Upload File :
Create Path :
Current File : //proc/3182/cwd/lacumbrejuriquilla.mx/mensaje_leads.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", '6Lf4P1EaAAAAAJwImjpCfP6Wxv9jwvDaUPhB-0z3');
$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["nombre"];
    $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"];
    }


    $Fecha = date("Y-m-d H:i:s");

        require('class_ith.php');
        $iCl = new class_ith(true);
        if($iCl->connect_errno == 0){
            $comentario="$Mensaje. (Medio: $MEDIO)";
            $vrLead = " INSERT INTO tb_leads(nombre, telefono, correo, medioID, empresaID, proyectoID, fechaRegistro, fechaMod,estatus, comentario) VALUES ('".$Nombre."','".$Telefono."','".$Email."',10,2,2,now(),now(),'Nuevo','$comentario');";

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

    $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: La Cumbre Juriquilla<ventas@Lacumbrejuriquilla.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