Ho trovato in rete uno schema relativo ad una pagina contatti molto strano. Il codice php é il seguente:
Codice PHP:
<?php
// Do not edit this if you are not familiar with php
error_reporting (E_ALL ^ E_NOTICE);
$post = (!empty($_POST)) ? true : false;
$replyto='yourname@yourdomain.com';
$subject = 'Contact Form Results';
if($post)
{
function ValidateEmail($email)
{
$regex = "/([a-z0-9_\.\-]+)". # name
"@". # at
"([a-z0-9\.\-]+){2,255}". # domain & possibly subdomains
"\.". # period
"([a-z]+){2,10}/i"; # domain extension
$eregi = preg_replace($regex, '', $email);
return empty($eregi) ? true : false;
}
$name = stripslashes($_POST['name']);
$email = trim($_POST['email']);
$message = stripslashes($_POST['message']);
$phone = stripslashes($_POST['phone']);
$answer = trim($_POST['answer']);
$verificationanswer="6"; // plz change edit your human answer
$from=$email;
$to=$replyto;
$error = '';
$headers= "From: $name <" . $email . "> \n";
$headers.= "Reply-to:" . $email . "\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers = "Content-Type: text/html; charset=utf-8\n".$headers;
// Checks Name Field
if(!$name || !$email || $email && !ValidateEmail($email) || $answer <> $verificationanswer || !$message || strlen($message) < 1)
{
$error .= 'Please fill the required fields correctly.
';
}
if(!$error)
{
$messages.="Name: $name
";
$messages.="Email: $email
";
$messages.="Message: $message
";
$mail = mail($to,$subject,$messages,$headers);
if($mail)
{
echo 'OK';
if($autorespond == "yes")
{
include("autoresponde.php");
}
}
}
else
{
echo '<div class="error">'.$error.'</div>';
}
}
?>
Quando il messaggio é stato inviato compare la scritta:
Your message has been sent. Thank you!
Ma dove cavolo viene recuperata questa stringa e come posso tradurla in lingua italiana? Nel codice c'é il riferimento al file autoresponde.php che però non trovo. Ho anche provato a visualizzare i file nascosti con windows ma niente!