Файл: 4mast/profmas.ru/data/forum/forum.cit.php
Строк: 42
<?
require_once('../../includes/Headers.php');
require_once('../../includes/PDO_func.php');
if($us['id'] == false)
{
header('location:/login/auth');
}
$thema = DB::$dbs->queryFetch("SELECT `id`,`name`,`type`,`id_pr` FROM `forum_t` where `id` = ? limit 1",array($id));
if($thema['name'] == null)
{
header('location:/forum/index');
}
$cpost = DB::$dbs->queryFetch("SELECT * FROM `forum_p` where `id_t` = ? and `id` = ? limit 1",array($thema['id'],(int)$_GET['cit']));
if($cpost == null or $cpost['status'] == 1)
{
header('location:/forums/thema'.$thema['id']);
}
$cus = DB::$dbs->queryFetch("SELECT `id`,`nick`FROM `us` where `id` = ? limit 1",array((int)$cpost['us']));
H ($thema['name'], $thema['name']);
if($thema['type'] == 2)
{
echo '<div class="error">Эта тема была удалена!</div>';
}
else
{
if($thema['type'] == 0)
{
header('location:/forums/thema'.$thema['id']);
}
echo '<div class="list1"><form action="/forums/thema'.$thema['id'].'/msg?do=cit" method="post" method="post"enctype="multipart/form-data">
Цитата:<div class="cit"><b>'.$cus['nick'].'</b>: '.tag($cpost['text']).'</div>
Сообщение:<br><textarea rows="3" name="message"></textarea><br>
<input type="hidden" name="cit_id" value="'. $cus['id'] .'">
<input type="hidden" name="cit_text" value="'. $cpost['text'] .'">
<input type="hidden" name="cit_post" value="'. $cpost['id'] .'">
Файл:<br><input type="file" name="filename"/><br>
<input type="submit" name="submit" value="Написать"/>
[<a href="/smiles">Смайлы</a> | <a href="/bbcode">BB</a>] </form></div>';
}
require_once('../../includes/Footers.php');
?>