include 'connect.php'; require 'contactar_'.$_SESSION['lang'].'.txt'; $captcha_fail = 0; $sent = 0; if (isset($_POST['formulario'])) { $nombre_null = 0; $telf_null = 0; $email_null = 0; if ($_POST['nombre'] == NULL) $nombre_null = 1; if ($_POST['telf'] == NULL) $telf_null = 1; if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email'])) $email_null = 1; $userIP = $_SERVER["REMOTE_ADDR"]; $recaptchaResponse = $_POST['g-recaptcha-response']; $secretKey = "6LeTTSoUAAAAADhhQa4xLWCAE20oB3JvLLIME7Vq"; $request = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret={$secretKey}&response={$recaptchaResponse}&remoteip={$userIP}"); if(!strstr($request, "true")){ $captcha_fail = 1; } else { if (($nombre_null != 1)&&($telf_null != 1)&&($email_null != 1)) { $cabeceras = "MIME-version: 1.0\n"; $cabeceras .= "Content-type: text/html; charset=iso-8859-1\n"; $cabeceras .= "From: ".$_POST['nombre']." ".$_POST['apellidos']." <".$_POST['email'].">\n"; $cabeceras .= "Reply-To: ".$_POST['email']."\n"; $asunto = TEXTO2_EMAIL_ASUNTO.$_POST['nombre']." ".$_POST['apellidos']; $cuerpo = '
BIZKAIFISIOS | '.EMAIL_DATOS.' |
'.EMAIL_NOMBRE.' | '.$_POST['nombre'].' |
'.EMAIL_APELLIDOS.' | '.$_POST['apellidos'].' |
'.EMAIL_TEL.' | '.$_POST['telf'].' |
EMAIL: | '.$_POST['email'].' |
'.EMAIL_OBSERBACIONES.' | '.nl2br($_POST['nota']).' |
'; // mail("gontzal@webrk.net",$asunto,$cuerpo,$cabeceras); mail($_POST['destino'],$asunto,$cuerpo,$cabeceras); $cabeceras = "MIME-version: 1.0\n"; $cabeceras .= "Content-type: text/html; charset=iso-8859-1\n"; $cabeceras .= "From: ".TEXTO_CABECERA." <".$_POST['destino'].">\n"; $cabeceras .= "Reply-To: ".$_POST['destino']."\n"; $asunto = TEXTO_ASUNTO; $cuerpo = '
BIZKAIFISIOS | '.EMAIL_CLIEN2.' |
'.EMAIL_CLIEN2.' '.EMAIL_CLIEN3.' |
|
'; mail($_POST['email'],$asunto,$cuerpo,$cabeceras); $sent = 1; } } } #end if (!isset($_POST['formulario'])) ?>
echo ESTAS; ?>
Clínica ANDRA MARI (Fisioterapia)
C/ Pontzi Zabala, 1 pasaje dcha.
48960 Galdakao
944 572 364 - 944 572 510
galdakao@bizkaifisios.com
Centro de Fisioterapia IGORRE
C/ Elexalde, 4
48140 Igorre
Tel y Fax: 946 315 508
bizkaifisios@telefonica.net