* * Licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise. * * You can get copies of the licenses at http://www.affero.org/oagpl.html * * AFFERO GENERAL PUBLIC LICENSE is also included in the file named "COPYING" * * on source root */ $title='solicitud de invitación // gñap!'; require 'templates/top.php'; $home = 1; ?>
is_valid)) { $email=stripslashes($_POST['email']); $body=stripslashes($_POST['body']); $confirmationBody .= '

'.$body; $valid=filter_var($email, FILTER_VALIDATE_EMAIL); if($valid){ $toadm = "Nueva solicitud:
Email: $email
Mensaje: $body

-- Mini yo"; $displayForm=false; $cabeceras = 'MIME-Version: 1.0' . "\r\n"; $cabeceras .= 'Content-type: text/html; charset=utf-8' . "\r\n"; mail('daniel@danisv.es', $messageSubject, $toadm, $cabeceras); mail('navarro.adrian@gmail.com', $messageSubject, $toadm, $cabeceras); if($body) mail($email, $messageSubject, $confirmationBody, $cabeceras); echo '

Gracias por solicitar una invitación. Se enviará una copia del mensaje (si lo has enviado) a tu email.

'; } else { // not validated echo '

El correo no es válido

'; } } elseif($_POST && empty($_POST['email']) ) { // form not complete echo '

El formulario no está completo.

'; } elseif(!$resp->is_valid && $_POST) { // form not complete echo '

El CAPTCHA no se ha introducido correctamente.

'; } elseif($_POST && empty($_POST['email']) && (!$resp->is_valid)) { // form not complete echo '

El formulario no está completo y el CAPTCHA no es correcto.

'; } if ($displayForm){ ?>
(la invitación será enviada a esta dirección)
Captcha
'; require 'templates/footer.php'; ?>