Просмотр файла send.php

Размер файла: 2.32Kb
<?
include "config.php";if (preg_match('/хуй|Хуй|ХУЙ|ПИЗДА|пизда|Пизда|пиздец|Пиздец|ПИЗДЕЦ|лох|Лох|ЛОХ|блядь|Блядь|БЛЯДЬ|СУКА|сука|Сука|Заебал|ЗАЕБАЛ|заебал|wml.su/i', $name, $arr)){$mat=$arr[0];}if (preg_match('/хуй|Хуй|ХУЙ|ПИЗДА|пизда|Пизда|пиздец|Пиздец|ПИЗДЕЦ| лох| Лох| ЛОХ|блядь|Блядь|БЛЯДЬ|СУКА|сука|Сука|Заебал|ЗАЕБАЛ|заебал|wml.su/i', $msg, $arr)){$mat=$arr[0];}if (!empty($mat)){$error = $error."mat";}if (empty($msg)){$error = $error."msg_error";}$m=file("data/$rum2.$antihack.dat");$m=explode("||", $m[0]);$numb=$m[4];if ($rand==$numb){$error=$error."two_msg";}$bw=getenv("HTTP_USER_AGENT");$brows=strtok($bw," ");$msg = substr($HTTP_POST_VARS["msg"],0,1500);$msg = trim($msg);if (empty($error)){$msg=str_replace("<","&lt;", $msg);$msg=str_replace(">","&gt;", $msg);$msg=str_replace("
","<br/>", $msg);$msg=preg_replace("!(http://[\S]+)([\s]|$)!i","<a href=\"\\1\">\\1</a> ",$msg);$sstr=array(':-)',':-(',':-|',':-0',';-)','8-)',':-D');$simg=array(
'<img src="1.gif" alt=":-)"/>','<img src="2.gif" alt=":-("/>','<img src="3.gif" alt=":-|"/>','<img src="4.gif" alt=":-0"/>','<img src="5.gif" alt=";-)"/>','<img src="6.gif" alt="8-)"/>','<img src="7.gif" alt=":-D"/>');$msg=str_replace($sstr,$simg,$msg);$msg=str_replace("[b]","<b>", $msg);$msg=str_replace("[/b]","</b>", $msg);$msg=str_replace("[u]","<u>", $msg);$msg=str_replace("[/u]","</u>", $msg);$msg=str_replace("[i]","<i>", $msg);$msg=str_replace("[/i]","</i>", $msg);$msg=str_replace("[big]","<big>", $msg);$msg=str_replace("[/big]","</big>", $msg);$msg=str_replace("[color=red]","<font color=\"red\">", $msg);$msg=str_replace("[color=yellow]","<font color=\"yellow\">", $msg);$msg=str_replace("[color=green]","<font color=\"green\">", $msg);$msg=str_replace("[color=blue]","<font color=\"blue\">", $msg);$msg=str_replace("[/color]","</font>", $msg);$base="data/$rum2.$antihack.dat";$back=file_get_contents("data/$rum2.$antihack.dat");$file = fopen("$base","w");fputs($file,"$n||$brows||".time()."||$msg||$rand||\r\n"."$back");flock ($file,LOCK_UN);fclose($file);header ("Location: index.php?rum=$rum&n=$n&pass=$pass&task=$task");}else{header ("Location: index.php?rum=$rum&n=$n&pass=$pass&infa=$error&task=$task");}?>