<?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/ipua.php';include_once 'sys/inc/fnc.php';include_once 'sys/inc/user.php';$set['title'] = 'Лента Ваших друзей';include_once 'sys/inc/thead.php';title();aut();if(!isset($user)){echo '<div class="err">Лента закрыт для гостей.</div>';}else{$qqqqq = " select `frends`.*, `frends_news_line`.*, ( select `nick` from `user` where `id`=`frends_news_line`.`uid` limit 1 ) `nick` from `frends`, `frends_news_line` where `frends`.`user`='".$user['id']."' and `frends_news_line`.`uid`=`frends`.`frend` order by `frends_news_line`.`id` desc";$k_post = mysql_num_rows(mysql_query($qqqqq));if ( $k_post == 0 ) echo '<br />Новостей нет';else {$k_page=k_page($k_post,$set['p_str']);$page=page($k_page);$start=$set['p_str']*$page-$set['p_str'];$qqqqq = mysql_query($qqqqq." limit ".$start.", ".$set['p_str'].";"); while ( $data = mysql_fetch_assoc($qqqqq) ) {if($num==1){ echo "<div class='rowdown'>"; $num=0;}else{ echo "<div class='rowup'>"; $num=1;}echo ' + <a href="/info.php?id='.$data['uid'].'">'.$data['nick'].'</a> ('.vremja($data['date']).')<br />'.$data['link'];echo '</div>';echo "  </td>\n";echo "   </tr>\n";}if ( $k_page > 1 ) str('?',$k_page,$page); /* Вывод страниц */}}echo '</div><br />';include_once 'sys/inc/tfoot.php';?>