/var/www/clients/client1/web2/web/latynfusion/2024_borrar
Edit: /var/www/clients/client1/web2/web/latynfusion/2024_borrar/graba_contacto.php (2504B)
Documento sin título
| Nombre y apellido |
'.$_POST['data']['nombre'].' |
| Empresa |
'.$_POST['data']['empresa'].' |
| Telefono |
'.$_POST['data']['telefono'].' |
| Email |
'.$_POST['data']['email'].' |
| Mensaje |
'.$_POST['data']['mensaje'].' |
';
$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' => '6LeHAMYaAAAAAKVhM5edpypuP92GejupXI5rm3fI', 'response' => $_POST['data']['g-recaptcha-response'])));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$arrResponse = json_decode($response, true);
if($arrResponse["success"] == '1' ) {
// mail( $email_principal, "Contacto", $html, $sCabeceras );
// mail( "info@latyn.net", "Contacto - Latynflex ", $html, $cabeceras );
mail( "info@latyn.net", "Contacto - Latynfusion ", $html, $cabeceras );
if ((isset($_POST['data']['nombre'])) && ($_POST['data']['nombre'] != "")) {
$insertSQL = sprintf("INSERT INTO contactos (tipo, id_sitio, fecha, nombre, empresa, telefono, email, mensaje) VALUES ('Contacto', 8,%s, %s, %s, %s, %s, %s)",
GetSQLValueString(date('Y-m-d'), "date"),
GetSQLValueString($_POST['data']['nombre'], "text"),
GetSQLValueString($_POST['data']['empresa'], "text"),
GetSQLValueString($_POST['data']['telefono'], "text"),
GetSQLValueString($_POST['data']['email'], "text"),
GetSQLValueString($_POST['data']['mensaje'], "text"));
$Result1 = mysqli_query($latynconexiones, $insertSQL) or die(mysqli_error());
}
}
}
?>