Файл: 4mast/profmas.ru/data/forum/forum.otv.php
Строк: 35
<?
require_once('../../includes/Headers.php');
require_once('../../includes/PDO_func.php');
if($us['id'] == false)
{
header('location:/login/auth');
exit;
}
$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');
exit;
}
$ous = DB::$dbs->queryFetch("SELECT id,nick FROM `us` where `id` = ? limit 1",array((int)$_GET['otv']));
if($ous == 0){
header('location:/forums/thema'.$thema['id']);
}
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']);
exit;
}
echo '<div class="list1"><form action="/forums/thema'.$thema['id'].'/msg?do=otv" method="post" method="post"enctype="multipart/form-data">
Сообщение для '.Nick($ous['id']).':<br><textarea rows="3" name="message"></textarea><br>
<input type="hidden" name="otv_nick" value="'. $ous['nick'] .'">
<input type="hidden" name="otv_id" value="'. $ous['id'] .'">
Файл:<br><input type="file" name="filename"/><br>
<input type="submit" value="Написать"/>
[<a href="/smiles">Смайлы</a> | <a href="/bbcode">BB</a>]</form></div>';
}
echo '</div>';
require_once('../../includes/Footers.php');
?>