Вход Регистрация
Файл: forum/my_p.php
Строк: 58
<?
include_once '../sys/includes/start.php';
include_once 
'../sys/includes/compress.php';
include_once 
'../sys/includes/sess.php';
include_once 
'../sys/includes/home.php';
include_once 
'../sys/includes/settings.php';
include_once 
'../sys/includes/db_connect.php';
include_once 
'../sys/includes/ipua.php';
include_once 
'../sys/includes/fnc.php';
include_once 
'../sys/includes/user.php';
$set['title']='Форум - Мои посты';
include_once 
'../sys/includes/header.php';
title();
auter();
echo 
"<table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo 
"<td class='pan_u'><center>";
echo 
"<img src='/s-klub/img/my_f.png'> <b><a href='/forum/my_t.php/'>Мои темы</a></b>";
echo 
"</center></td>";
echo 
"<td class='pan_u'><center>";
echo 
"<img src='/s-klub/img/my_f.png'> <b>Мои посты</b>";
echo 
"</center></td>";
echo 
"</tr></table>";
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_p`  WHERE `id_user` = '$user[id]'"),0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q=mysql_query("SELECT * FROM `forum_p` WHERE `id_user` = '$user[id]' ORDER BY `time` DESC  LIMIT $start$set[p_str]");
if (
mysql_num_rows($q)==0)
{
echo 
"<table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo 
"<td class='err'>";
echo 
"Ваших постов нет в форуме!";
echo 
"</td>";
echo 
"</tr></table>";
}
while (
$them mysql_fetch_array($q))
{
echo 
"<table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
if (
$set['set_show_icon']==1)
{
echo 
"<td class='p_m' colspan='2'>";
}else{
echo 
"<td class='p_m'>";
}
$them['msg']=stripcslashes(htmlspecialchars($them['msg']));
echo 
"<img src='/s-klub/img/my_f.png'> ".$them['msg']."<br />";
echo 
"<img src='/s-klub/img/time.png'> ".vremja($them['time'])."<br/>";
echo 
"</td>";
echo 
"</tr></table>";
}
if (
$k_page>1)
{
str("?",$k_page,$page);
}
echo 
"<a href='/forum/'><div class='foot'>";
echo 
"<img src='/s-klub/img/left.png'> В форум<br />"
echo 
"</div></a>";
include_once 
'../sys/includes/footer.php';
?>
Онлайн: 2
Реклама