Файл: forum/post.php
Строк: 16
<?php
include_once '../system/head.php';
$id = intval($_GET['id']);
$postt = mysql_fetch_array(mysql_query('SELECT * FROM `posts` WHERE `id`='.$id.''));
$theme = mysql_fetch_array(mysql_query('SELECT * FROM `themes` WHERE `id`='.$postt[id_theme].''));
$razdel = mysql_fetch_array(mysql_query('SELECT * FROM `forum` WHERE `id`='.$postt[id_forum].''));
$users = mysql_fetch_array(mysql_query('SELECT * FROM `user` WHERE `id`='.$postt[author_id].''));
echo'
<div class="head"><a href="index.php">Форум</a> | <a href="forum.php?id='.$razdel['id'].'">'.$razdel['name'].'</a> | <a href="theme.php?id='.$theme['id'].'">'.$theme['name'].'</a></div>
<div class="menu"><a href="/profile'.$users[id].'"><b>'.$users[login].'</b></a><b>['.$users[posts].']</b>';
echo' <br/><small>'.clock($postt[time]).'</small><br/>'.smiles(bb_code($postt[text])).'</div>
<div class="menu"><input name="link" value="http://'.$_SERVER['HTTP_HOST'].'/forum/post'.$id.'" type="text"/></div>
<div class="menu">< <a href="theme.php?id='.$theme['id'].'">Назад в '.$theme['name'].'</a></div>';
require_once '../system/foot.php';
?>