Файл: obs.php
Строк: 36
<?php
##########################################################
# За дополнениями обращайтесь: #
# icq 449-424-588 #
# email: Dimonnet@inbox.ru #
##########################################################
# coding by ___хакер___ (MaZaFaKa) #
##########################################################
# запрещено распространять каталог без согласия автора!!!#
##########################################################
include "inc.php";
include "head.php";
print "<div style="text-align: center">
<div class="contur_rek"><div class="header_rek"><b>Новости</b></div></div></div>";
$qob = @mysql_query("select * from `obyavleniya` where `ci`='$ci' order by id desc limit $p,8;");
while($obyavl = @mysql_fetch_array($qob))
{
print "<div class="contur"><div class="header"><font color='red'>● ".$obyavl['zag']."</font> (".$obyavl['date'].")<br/>";
print "→ <u>Содержание:</u> ".$obyavl['cont']."<br/>";
print "</div></div>";
}
$counts = @mysql_query("select `id` from `obyavleniya`;");
$kol = @mysql_num_rows($counts);
if ($kol > $p+8)
{
if ($p = 0)
$n = 9;
else
$n = 8;
$p = $p+$n;
print "<a href="obs.php?p=$p&ci=$ci&st=$st">Далее</a><br/>";
}
print "<div class="header"><a href="rules.php?ci=$ci&st=$st">→ Правила</a><br/>";
print "<a href="about.php?ci=$ci&st=$st">→ О каталоге</a><br/>";
print "<a href="registration.php?rul=y&ci=$ci&st=$st">→ Регистрация</a><br/>";
print "<a href="index.php?ci=$ci&st=$st">→ В Каталог</a></div>";
include "foot.php";
print "</div>";
echo "</body></html>";
?>