Файл: forum.php
Строк: 20
<?
define('PROTECTOR', 1);
$textl='Форум';
include('files/db.php');
include($path.'files/auth.php');
if ($user_id==0){
header('location: index.php');exit;
}
include($path.'files/head.php');
include($path.'files/zag.php');
echo '<table width=100%>
<tr>
<td width=35%>
<a href=game.php><div style="background: #882222; border-radius: 7px 0 0 7px" class="m p bts bbs brs bls" align=center>Главная</div></a>
</td><td>';
echo '<a href=?><div class="line bts brs bls bbs p m" style="border-radius: 0 7px 7px 0">
<font color=#ffffff>Форум
</font>
</div></a></td></tr></table>';
echo '<div class="bat bts brs bls bbs p">';
$ch=mysql_query("SELECT * FROM `forum_cat` ORDER BY `id`");
while($chat=mysql_fetch_array($ch))
{
if($chat['close']==2 and $udata['admin']<1)
{
}
else
{
echo '<img src=img/main/p21.png><a href=forum_cat.php?cat='.$chat['id'].'> '.$chat['cat'].'</a><br>';
}
}
echo '</div></div>';
include($path.'files/down.php');
?>