Файл: world-faces.ru/world-faces.ru/forum/my_p.php
Строк: 52
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/dbPDO.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
$set['title']='Мои сообщения';
include_once '../sys/inc/thead.php';
title();
aut(); // форма авторизации
echo "<div class="menu">n";
echo "• <a href="index.php" title="Вернуться к подфорумам">Форум</a> / Мои постыn";
echo "</div>n";
$k_post=DB::$dbs->querySingle("SELECT COUNT(*) FROM `forum_p` WHERE `id_user` =?",array($user['id']));
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q=DB::$dbs->query("SELECT * FROM `forum_p` WHERE `id_user` =? ORDER BY `time` DESC LIMIT $start, $set[p_str]",array($user['id']));
if ($k_post==0) {
echo "Вы еще ни разу не писали в форуме<br/>n";
}
while ($them = $q->fetch())
{
$forum = DB::$dbs->queryFetch("SELECT * FROM `forum_f` WHERE `id` =? LIMIT 1",array($them['id_forum']));
$razdel= DB::$dbs->queryFetch("SELECT * FROM `forum_r` WHERE `id` =? LIMIT 1",array($them['id_razdel']));
$them1 = DB::$dbs->queryFetch("SELECT * FROM `forum_t` WHERE `id` =? LIMIT 1",array($them['id_them']));
if($num==1){
echo "<div class='adm2'>";
$num=0;
}else{
echo "<div class='adm'>";
$num=1;}
echo "<img src='/img/razd.gif' alt='' /> ";
echo "$them[msg] (".vr($them['time']).")<br/>n";
echo "</div>";
}
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
include_once '../sys/inc/tfoot.php';
?>