"", "1"=>'01 ������� ������������', "2"=>'03 ����������, ������, �����', "3"=>'04 ������� ��������', "4"=>'06 ������������� ���������', "5"=>'05 ���������� �������', "6"=>'02 ������-���� ��� ����������������', ); // ������������� asort($_NewsRubrica); // ������� ����� �� ����. �������� $_NewsRubrica = preg_replace("/[0-9]/","",$_NewsRubrica, 2); # ������� �� �������� $_NewsRubrica2=array("0"=>"", "1"=>'01 ��� ����������� �������', "2"=>'02 ��� ����������� ��������', "3"=>'03 ��� ������� ��������������', "4"=>'04 ��� ����������� �������', "5"=>'05 ��� ��������� ��������', "6"=>'06 ��� ������� �����������', ); // ������������� asort($_NewsRubrica2); // ������� ����� �� ����. �������� $_NewsRubrica2 = preg_replace("/[0-9]/","",$_NewsRubrica2, 2); $t0 = "http://www.oborud.info/news/?t=".$t; $t1 = "http://www.oborud.info/news/2O11/?t=".$t; $t2 = "http://www.oborud.info/news/2011/?t=".$t; $t3 = "http://www.oborud.info/news/2O12/?t=".$t; $t4 = "http://www.oborud.info/news/2012/?t=".$t; $t5 = "http://www.oborud.info/news/2010/?t=".$t; // echo $t0; $r0=mysql_query("SELECT rubs, rubs2, link FROM news2 WHERE link = '$t0' OR link = '$t1' OR link = '$t2' OR link = '$t3' OR link = '$t4' OR link = '$t5' LIMIT 0, 1") or die(mysql_error()); $rr=mysql_result($r0,0,0); $pp=mysql_result($r0,0,1); echo "
\"�������\"

������� �������� » �������-PRO » ".strtolower($_NewsRubrica[$rr])." » ".strtolower($_NewsRubrica2[$pp])." » ".strtolower($zag)."

"; // ����� ����������� ������� $bbtext = str_replace(":".$bbcode, "", $bbtext); $bbtext = str_replace("[color=white]-[/color]", " ", $bbtext); $bbtext = str_replace("[size=9]", "", $bbtext); $bbtext = str_replace("[size=10]", "", $bbtext); $bbtext = str_replace("[size=11]", "", $bbtext); $bbtext = str_replace("[size=12]", "", $bbtext); $bbtext = str_replace("[size=13]", "", $bbtext); $bbtext = str_replace("[size=14]", "", $bbtext); $bbtext = str_replace("[size=15]", "", $bbtext); $bbtext = str_replace("[size=16]", "", $bbtext); $bbtext = str_replace("[size=17]", "", $bbtext); $bbtext = str_replace("[size=18]", "", $bbtext); $bbtext = str_replace("[/size]", "", $bbtext); $bbtext = str_replace("[color=darkred]", "", $bbtext); $bbtext = str_replace("[color=green]", "", $bbtext); $bbtext = str_replace("[color=red]", "", $bbtext); $bbtext = str_replace("[color=black]", "", $bbtext); $bbtext = str_replace("[color=orange]", "", $bbtext); $bbtext = str_replace("[color=darkblue]", "", $bbtext); $bbtext = str_replace("[color=blue]", "", $bbtext); $bbtext = str_replace("[color=white]", "", $bbtext); $bbtext = str_replace("[/color]", "", $bbtext); $bbtext = str_replace("[color=white]-[/color]", " ", $bbtext); $bbtext = str_replace("- -", "   ", $bbtext); $bbtext = str_replace("[url=", "", $bbtext); $bbcode = array("<", ">", "[list]", "[*]", "[/list]", "[img]", "[/img]", "[b]", "[/b]", "[u]", "[/u]", "[i]", "[/i]", '[color="', "[/color]", "[size=\"", "[/size]", '[url="', "[/url]", "[mail=\"", "[/mail]", "[code]", "[/code]", "[h1]", "[/h1]", "[r]", "[/r]", "[c]", "[/c]", "[pre]", "[/pre]", "[alt]", "[/alt]", "[quote]", "[/quote]", "[OBJECT468]", "[/OBJECT468]", "[EMBED468]", "[/EMBED468]", "[s]", "[/s]", "[video]", "[/video]", "]"); $htmlcode = array("<", ">", "
    ", "
  • ", "
", "", "", "", "", "", "", "", "", "", '
", "", "", "", "

", "

", "
", "
", "
", "
", "
", "
", " alt=\"", "\"", "
", "
", "
", "
", "", "", "", ">"); $newtext = str_replace($bbcode, $htmlcode, $bbtext); $newtext = nl2br($newtext);//second pass $newtext = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1
\\2", $newtext); $newtext = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1\\2@\\3", $newtext); $newtext = str_replace("", "", $newtext); $newtext = str_replace("[/list:u>", "", $newtext); $newtext = preg_replace("!� (.*?)\n!si","
  • \\1
",$newtext); $newtext = preg_replace("!alt=\"(.*?)\"!si","alt=\"\\1\" title=\"\\1\" ",$newtext); $newtext = str_replace("http://www.youtube.com/watch?v=", "http://www.youtube.com/v/", $newtext); $newtext = preg_replace("!!si","

�������� �� YouTube
",$newtext); ?>

�����������


HotLog �������@Mail.ru Rambler's Top100