File size: 698B
<?
include_once '../core/system.php';
echo only_reg();
echo ban();
$header = 'Форум';
include_once '../core/head.php';
mysql_query("UPDATE `user` set `mesto` = 'Форум' where `id` = '".$user['id']."'");
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_razdel`"),0);
$q = mysql_query("SELECT * FROM `forum_razdel` ORDER BY `id` ASC");
if($k_post == 0)echo "<div class='player grey'>Разделов нет</div><div class='mini-line'></div>";
while($ind = mysql_fetch_array($q)) {
echo "<div class='down-foot but-list'>";
echo "<a href='/forum/post/$ind[id]/'><img src='/images/icon/section.png'> $ind[name]</a></div>";
}
echo "</div>";
include_once '../core/foot.php';
?>