',$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 �� �� ����� ����!
��������� c ����� \"$smailurl\" | |
��� | $name |
���� | $tema |
���� ��������: | $date �. � $time |
��������� | $msg |
��� ����� �� �������� �� �������� ���� ����������� �����.
"; } ?>