Размер файла: 1.41Kb
<?php
############################################ Автор: Воскобойник Diniyar63 ###################### ICQ: 217-95-85 ###################### E-mail: [email protected] ##############################
include "config.php"; include "header.php";
if($rand==$r){}else{$f="error";}
if($to=="serv"){$to=$mailsend;if(!eregi("^([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)$", $to))
{ $error=$error."send_error"; }}
if(empty($tema))
{$error=$error."unknow_tema";}
if($ot_kogo==""){$ot_kogo="";}else{if(!eregi("^([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)$", $ot_kogo))
{ $error=$error."mail_to_error"; }}
if(empty($msg)){$error=$error."unknow_msg";}
if(empty($error))
{if(empty($f)){
require"functions.inc.php";
$msg=del($msg);
$tema=del($tema);
$tema = '=?utf-8?B?'.base64_encode($tema).'?=';
$headers = "From: $ot_kogo\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$headers .= "Content-Type: text/plain; charset=\"utf-8\"\r\n";
$headers .= "X-Mailer: Lokomotiv.wen.ru by Diniyar63";
echo "<div class=\"back\">Ваше сообщение отправленно!"; echo $end; $msg="От кого: $ot_kogo\r\n Сообщение: $msg";
mail($to, $tema, $msg, $headers);}else{header("location: error.php?f=$f");}}else{header("location: error.php?e=$error&f=$f");} ?>