View file game/1/send.php

File size: 2.12Kb
<?php

 
require_once("head.php");
require_once("config.php");

echo "<p align=\"left\"><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\n";
	 $message = wordwrap($message, 70);
	 
	 mail($mojmejl, $subject, $message, $mailheaders);
	 
	 echo "<b>&#1057;&#1087;&#1072;&#1089;&#1080;&#1073;&#1086; ".$from." &#1074;&#1072;&#1096;&#1077; &#1089;&#1086;&#1086;&#1073;&#1097;&#1077;&#1085;&#1080;&#1077; &#1086;&#1090;&#1087;&#1088;&#1072;&#1074;&#1083;&#1077;&#1085;&#1086; &#1072;&#1076;&#1084;&#1080;&#1085;&#1080;&#1089;&#1090;&#1088;&#1072;&#1090;&#1086;&#1088;&#1072;&#1084; &#1080;&#1075;&#1088;&#1099;</b><br/><br/><br/>";
	 }
else {
	 echo "&#1087;&#1086;&#1078;&#1072;&#1083;&#1091;&#1081;&#1089;&#1090;&#1072; &#1074;&#1074;&#1077;&#1076;&#1080;&#1090;&#1077; &#1074;&#1072;&#1096;&#1077; &#1080;&#1084;&#1103; &#1080; &#1089;&#1086;&#1086;&#1073;&#1097;&#1077;&#1085;&#1080;&#1077;<br/>";
	 echo "<br/><br/><a href=\"index.php\">&#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>";
		}
echo "<b><a href=\"../\">&#1085;&#1072; &#1075;&#1083;&#1072;&#1074;&#1085;&#1091;&#1102;</a></b><br/></small>";
$t=date("Y");
echo "<small><b>&#169; Darks $t</b></small><br/>";

require_once("foot.php");

?>