Файл: wall/handler/index.php
Строк: 10
<?php
echo '<div id="content_wall"><div class="wall">';
if ($arr_user['count_wall'] > 0)
{
$cp = ceil($arr_user['count_wall']/10-5);
$p = (isset($_GET['p']) and is_numeric($_GET['p']) and $_GET['p']>1 and $_GET['p']<=$cp) ? $_GET['p'] : 1;
$start = $p*10-5;
$res = mysql_query("SELECT * FROM `wall` WHERE `wall_id` = '".$id."' ORDER by `time` DESC LIMIT $start, 10");
while ($arr = mysql_fetch_array($res))
{
//echo wall_post($arr);
}
navi($p,$cp,'/wall/?id='.$id.'&');
}
echo '</div></div>';