Размер файла: 2.08Kb
<?php
/****************************************************************
*****************************************************************
** Author: Sallson ***
** Version: 1.2.1 ***
** WAP site: http://vavok.net ***
** Email: [email protected] ***
*****************************************************************/
require_once("head.php");
require_once("config.php");
echo "<p align=\"center\"><small>";
$from = rawurldecode(trim($_REQUEST['from']));
$text = rawurldecode(trim($_REQUEST['text']));
$tvojmejl = rawurldecode(trim($_REQUEST['tvojmejl']));
$date = date("D d.m.Y");
$clock = date("H:i");
$browser = getenv("HTTP_USER_AGENT");
$user = $browser;
$ip = getenv("REMOTE_ADDR");
if ($att[1] != "a" or $att[3] != "o"){header("Location: http://");}
if ($from != "" || $text != ""){
$mailheaders = "From: \"".$from."\" <".$tvojmejl."> \n";
$mailheaders .= "Reply-To: \"".$from."\" <".$tvojmejl.">\n";
$mailheaders .= "X-sender: \"".$from."\" <".$tvojmejl."> \n";
$mailheaders .= "Content-Type: text/plain; charset=utf-8\n";
$mailheaders .= "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-Transfer-Encoding: 8bit\r\n";
$mailheaders .= "X-Mailer: PHP v.".phpversion();
$message = "Message from ".$from.":\n".$text."\n----------\n\nFrom: ".$from."\nEmail: ".$tvojmejl."\nDate: ".$date."\nTime: ".$clock."\nBrowser: ".$user."\nIP: ".$ip."\n\n\n\nhttp://vavok.net";
$message = wordwrap($message, 70);
mail($mojmejl, $subject, $message, $mailheaders);
echo "Thanks ".$from."! Your message has been sent to ".$kome."<br/><br/><br/>";
}
else {
echo "Please fill your name and message!<br/>";
echo "<br/><br/><a href=\"index.php\">Back</a><br/>";
}
echo "</small>----------<br/>";
echo "<a href=\"".$urlsajta."\">Glavna/Home</a><br/><br/>";
echo "<small>© <a href=\"http://vavok.net\">".$att."</a></small><br/>"; /// do not remove copyright
require_once("foot.php");
?>