File size: 1.54Kb
<?
/*
* $name описание действий объекта
*/
if ($type == 'them' && $post['avtor'] != $user['id'])
{
$name = 'создал' . ($avtor['pol'] == 1 ? null : "а") . ' в форуме тему ';
}
/*
* Вывод блока с содержимым
*/
if ($type == 'them')
{
$them = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum_t` WHERE `id` = '" . $post['id_file'] . "' LIMIT 1"));
$razdel = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum_r` WHERE `id` = '$them[id_razdel]' LIMIT 1"));
$forum = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum_f` WHERE `id` = '$razdel[id_forum]' LIMIT 1"));
if ($them['id'])
{
echo '<div class="nav1">';
echo avatar($avtor['id']) . group($avtor['id']) . user::nick($avtor['id']) . medal($avtor['id']) . online($avtor['id']) . ' <a href="user.settings.php?id=' . $avtor['id'] . '">[!]</a> ' . $name . $s1 . vremja($post['time']) . $s2 . '<br />';
echo '</div>';
echo '<div class="nav2">';
echo ' <a href="/forum/' . $forum['id'] . '/' . $razdel['id'] . '/' . $them['id'] . '/"> ' . text($them['name']) . '</a> ';
echo '<div class="text">' . output_text($them['text']) . '<br /></div>';
}
else
{
echo '<div class="nav1">';
echo avatar($avtor['id']) . group($avtor['id']) . user::nick($avtor['id']) . " <a href='user.settings.php?id=$avtor[id]'>[!]</a>";
echo medal($avtor['id']) . online($avtor['id']);
echo '</div>';
echo '<div class="nav2">';
echo 'Тема уже удалена =( ' . $s1 . vremja($post['time']) . $s2;
}
}
?>