Просмотр файла newsub/komm.php

Размер файла: 9.12Kb
<?php
//   X-Thief ICQ: 4644864
//   [email protected]
//   wap.telon.ru - Бесплатные загрузки, каждый день!
require ("ini.php");
Error_Reporting(E_ALL & ~E_NOTICE);
header("Cache-Control: no-cache");
header("Content-type:text/html; charset=utf-8");
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Коментарии</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>';
$koment=mysql_fetch_row(mysql_query("SELECT count(*) from `news_komm` WHERE `time`='$time'"));

print '<div class="copyright">Коментариев: '.$koment[0].'</div>';
print '<div class="upban">
<a href="addkomm.php?time='.$time.'">Добавить</a><br/><div class="body">';
$kolchel=$newspage;
$zapros="select * from `news_komm` WHERE `time`='$time' ORDER BY `date` DESC";

$result=mysql_query($zapros);
$kolstr=ceil(mysql_num_rows($result)/$kolchel); 
if (!@$page)
$page=0;
$pg=$page+1;
$start=$page*$kolchel;
$end=$start+$kolchel;
@mysql_data_seek($result,$start);
while($news=mysql_fetch_array($result))
{$date=date("d.m H:i",$news['date']);
$w=array('СУКА','ХУЙ','ХУИ','ХУЁ','ХУЕ','ИБА','ИПАЛ','АХХУЕН','ПИТБ','ХУЯ','ХУУ','АХУЕ','ОХУЕ','ХУЕЛ','ОХУИ','ОХУУ','ОХИУ','ОХУЮ','АХУИ','АХИИ','АХИЕ','АХУУ','АХИУ','ПИЗД','ПИСД','ПЫЗД','ПЫСД','ПИЦД','ПЕЗД','ПЕСД','БЛЯД','БЛЯ','БЛАД','БЛЯТ','БЛАТЬ','БЛЙАД','БЛЙАТ','БЛИАД','БЛИАТ',' ЁБ',' ЁП',' ЕБ','ЙОБ','ИОБ','ЪЕБ','АЁБ','АЁП','АЕБ','АЙОБ','АИОБ','ОЁБ','ОЕБ','УЁБ','УЁП','УЕБ','УЙОБ','УИОБ','ИЕБ','ЫЕБ','МУДИ','МУДА','ЧЛЕН','ЧЛЕП','ПИДОР','ПИДАР','ГЕЙ','НИДОР','НИДАР','ПЕДИ','ЧМО','ЖОП','ДРАЧИ','ДРАЦХИ','ТВАЮ','ПОЦ','ПОХ','САСИ',' ЛОХ',' ЛОШОК','ЕДРИ','РАКО','ХЕР','ПИДО','ГОНД','МАНД','ЗАЛУП','ОТХУ','СУЧЕ','СРАН','МУДО','ДАРАС','БАЛЬНИК','СЦУКА',
'сука','хуй','хуи','хуё','хуе','иба','ипал','аххуен','питб','хуя','хуу','ахуе','охуе','хуел','охуи','охуу','охиу','охую','ахуи','ахии','ахие','ахуу','ахиу','пизд','писд','пызд','пысд','пицд','пезд','песд','бляд','бля','блад','блят','блать','блйад','блйат','блиад','блиат',' ёб',' ёп',' еб','йоб','иоб','ъеб','аёб','аёп','аеб','айоб','аиоб','оёб','оеб','уёб','уёп','уеб','уйоб','уиоб','иеб','ыеб','муди','муда','член','члеп','пидор','пидар','гей','нидор','нидар','педи','чмо','жоп','драчи','драцхи','тваю','поц','пох','саси',' лох',' лошок','едри','рако','хер','пидо','гонд','манд','залуп','отху','суче','сран','мудо','дарас','бальник','сцука','xyй','Хуй','XYЙ','еба'); 
$news['mess'] = str_replace($w,$znak,$news['mess']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]org)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]net)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]us)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]com)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]ws)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]kz)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]su)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]kmx[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]h2m[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wab[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]jino-net[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen9[.]org)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen9[.]net)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]us)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen9[.]com)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]ws)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]kmx[.]kz)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);
$news['name'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]su)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['name']);

$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]org)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]net)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]us)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]com)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]ws)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]kz)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]su)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]kmx[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]h2m[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wab[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]jino-net[.]ru)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen9[.]org)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen9[.]net)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]us)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen9[.]com)', '\\1'.$_SERVER['HTTP_HOST'].'',$news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]ws)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]kmx[.]kz)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
$news['mess'] = eregi_replace ('([[:space:]]|\n|<br>)([-a-zA-Z0-9@:%_\+.~#?&//=]+[.]wen[.]su)', '\\1'.$_SERVER['HTTP_HOST'].'', $news['mess']);
print "<b>$news[name]</b> $date<br/>
$news[mess]<br/><br/>";
$start++;
if ($start>=$end)
break;
}
print '<div class="downban">';
if ($kolstr>$page+1){
print '<a href="komm.php?page='.$pg.'&amp;time='.$time.'">Далее</a><br/>';}
if ($page>0)
{$pp=$page-1;
print '<a href="komm.php?page='.$pp.'&amp;time='.$time.'">Назад</a><br/>';}
print '</div>';
print $footer;
?>