$menu="contactos";
if ($_POST) {
session_start();
$_SESSION['errors'] = '';
$nome = $_POST["nome"];
$email = $_POST["email"];
$assunto = $_POST["assunto"];
$mensagem = $_POST["mensagem"];
$span = false;
if ($_POST['formtime'] < time()-3600) $span = true;
if ($nome != '') {
if (filtro(array($nome))) $span = true;
}
if ($assunto != '') {
if (filtro(array($assunto))) $span = true;
}
if ($mensagem != '') {
if (filtro(array($mensagem))) $span = true;
}
if ($span) $_SESSION['errors'] .= "Ocorreu um erro ao salvar os dados, por favor, tente novamente
"; // Error while saving the message, please, try again
include("verificationimage/verification_image.class.php");
$verification_image = new verification_image();
$jsalert = "";
if($_SESSION['verification_key'] != $_POST['captcha']) {
$_SESSION['errors'] .= "C�digo de verifica��o inv�lido";
}
if ($_SESSION['errors'] == '') {
// check to see if verificaton code was correct
//if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
$morada = str_replace("\r\n", "
", $_POST['Morada']);
$mensagem = str_replace("\r\n", "
", $_POST['mensagem']);
$contents_admin = "
SEDE
Rua Azedo Gneco, Lote 6-B
Parque Industrial de Sta. Marta de Corroios
2845-405 Amora
Portugal
Tel: (+351) 212 555 310
Fax: (+351) 212 555 319
Emails:
geral@superveda.pt
comercial@superveda.pt
financeiro@superveda.pt