"; $back="
��������� �����"; // ������� ������ function replacer ($text) { // ������� ������� ���� $text=str_replace(" ",' ',$text); $text=str_replace(">",'>',$text); $text=str_replace("<",'<',$text); $text=str_replace("\"",'"',$text); $text=preg_replace("/\n\n/",'

',$text); $text=preg_replace("/\n/",'
',$text); $text=preg_replace("/\\\$/",'$',$text); $text=preg_replace("/\r/",'',$text); $text=preg_replace("/\\\/",'\',$text); $text=str_replace("\r\n","
",$text); $text=str_replace("\n\n",'

',$text); $text=str_replace("\n",'
',$text); $text=str_replace("\t",'',$text); $text=str_replace("\r",'',$text); $text=str_replace(' ',' ',$text); do {$text=str_replace("


","
",$text);} while (preg_match("/



/i",$text)); do {$text=str_replace(" "," ",$text);} while (preg_match("/ /i",$text)); $text=str_replace("\t",' ',$text); $text=str_replace("\r",' ',$text); $text=str_replace(' ',' ',$text); $text=rtrim($text); return $text; } // ��� ����������� ��������: $absrand="82321";// ��������� �����. ������������ ��� �����������. if (isset($_GET['image'])) { // ������� � ������� ������ $st="R0lGODlhCgAMAIABAFNTU////yH5BAEAAAEALAAAAAAKAAwAAAI"; // ����� ����� ��� ���� �������� function imgwr($st,$num){ if ($num=="0") {$len="63"; $number=$st."WjIFgi6e+QpMP0jin1bfv2nFaBlJaAQA7";} if ($num=="1") {$len="61"; $number=$st."UjA1wG8noXlJsUnlrXhE/+DXb0RUAOw==";} if ($num=="2") {$len="64"; $number=$st."XjIFgi6e+QpMPRlbjvFtnfFnchyVJUAAAOw==";} if ($num=="3") {$len="64"; $number=$st."XjIFgi6e+Qovs0RkTzXbj+3yTJnUlVgAAOw==";} if ($num=="4") {$len="64"; $number=$st."XjA9wG8mWFIty0amczbVJDVHg9oSlZxQAOw==";} if ($num=="5") {$len="63"; $number=$st."WTIAJdsuPHovSKGoprhs67mzaJypMAQA7";} if ($num=="6") {$len="63"; $number=$st."WjIFoB6vxmFw0pfpihI3jOW1at3FRAQA7";} if ($num=="7") {$len="61"; $number=$st."UDI4Xy6vtAIzTyPpg1ndu9oEdNxUAOw==";} if ($num=="8") {$len="63"; $number=$st."WjIFgi6e+QpMP2slSpJbn7mFeWDlYAQA7";} if ($num=="9") {$len="64"; $number=$st."XjIFgi6e+QpMP0jinvbT2FGGPxmlkohUAOw==";} header("Content-type: image/gif"); header("Content-length: $len"); echo base64_decode($number); } // ����� ����������� �� ����� (��� ���������� - ����� �� ������) if (array_key_exists("image", $_REQUEST)) { $num=$_REQUEST["image"]; for ($i=0; $i<10; $i++) {if (md5($i+$absrand)==$num) {imgwr($st,$i); die();}} } exit;} //******************* ���� ����� ������ �� ������� ************************// // ������� �������� ��������� �������������� if (isset($_GET['event'])) { //sleep(1); // ������ ������ �� ����� if ($antispam==TRUE) { $bada="$shapka $back �������� ���� ��� �� �����!"; if (isset($_POST['usernum'])) {$usernum=$_POST['usernum'];} else {exit("$bada");} if (isset($_POST['xkey'])) {$xkey=$_POST['xkey'];} else {exit("$bada");} $userkey=md5("$usernum+$absrand"); if ($userkey!=$xkey) {exit("$bada");}} // ������������ REPLACER'�� ��� ������ if (!isset($_POST['name'])) {exit("$shapka $back �� �� ����� ���!");} else {$name=replacer($_POST['name']);} if (!isset($_POST['email'])) {exit("$shapka $back �� �� ����� �����!");} else {$email=replacer($_POST['email']);} if (!isset($_POST['tema'])) {exit("$shapka $back �� �� ����� ����!");} else {$tema=replacer($_POST['tema']);} if (!isset($_POST['msg'])) {exit("$shapka $back �� �� ����� ���������!");} else {$msg=replacer($_POST['msg']);} // ���� ���� �����������, ��������������� ������� ���� if ($tema=="" || strlen($tema)>$maxtema) {exit("$shapka $back �� �� ����� ����!

");} if ($name=="" || strlen($name)>$maxname) {exit("$shapka $back �� �� ����� ���, ��� ������ ������� ������� ���!");} if ($msg=="" || strlen($msg)>$maxmsg) {exit("$shapka $back ���� ��������� ��� ������ ��� ��������� $maxmsg ��������.");} if(!preg_match("/^[a-z0-9\.\-_]+@[a-z0-9\-_]+\.([a-z0-9\-_]+\.)*?[a-z]+$/is", $_POST['email']) or $_POST['email']=="") {exit("$shapka $back � ������� ���������� E-mail �����!");} $host=$_SERVER["HTTP_HOST"]; $self=$_SERVER["PHP_SELF"]; $smailurl="http://$host$self"; // ��������� ��� �������� ����� $headers=null; $headers.="From: $name <$email>\n"; $headers.="X-Mailer: PHP/".phpversion()."\n"; $headers.="Content-Type: text/html; charset=windows-1251"; // �������� ��� ���������� � ���� ������ $allmsg="$shapka
��������� c ����� \"$smailurl\"

���

$name

E-mail

$email

����

$tema

���� ��������:

$date �. � $time

���������

$msg
"; $printmsg="$allmsg

���� ��������� ������� ����������

��������� ����� "; $allmsg.="


* ��� ��������� ���������� � ����� �������� �����."; // ���������� ������ ������� �� �������� ;-) mail("$myemail", "�������� �����. ��������� �� $name", $allmsg, $headers); // ����� ������������ "�������" � ��������� �������� ����� JavaScript print "$printmsg"; exit; } else { // ���� ������� �������� print "$shapka

����� �� ������ �������� ��������� ��� ���� ��� ������ ���� ������.

��� ����� �� �������� �� �������� ���� ����������� �����.

���� �� ������ ����� ��� ������ � ����� �� ���� ���� � ���������� ������������ �� ���� �����, �� ������� ��� � ����� ���������.



"; } print"
��������� ��������� ������� ����

���

E-mail

����

���������

"; if ($antispam==TRUE) { // ���� �������� ����������� if (array_key_exists("image", $_REQUEST)) { $num=replacer($_REQUEST["image"]); for ($i=0; $i<10; $i++) {if (md5($i+$absrand)==$num) {imgwr($st,$i); die();}} } $xkey=""; mt_srand(time()+(double)microtime()*1000000); print"

�������� ���

"; for ($i=0; $i<$maxkey; $i++) { $snum[$i]=mt_rand(0,9); $psnum=md5($snum[$i]+$absrand); $phpself=$_SERVER["PHP_SELF"]; echo "\n"; $xkey=$xkey.$snum[$i]; } $xkey=md5("$xkey+$absrand"); print"  

(������� �����, ��������� �� ��������)


"; } ?>
Powered by WR-Sendmail © 1.4