Денис Павлик,
Не работает:
<?php
$title = 'Сейчас онлайн';
include '../inc/core.php';
include '../inc/head.php';
auth();
echo '<div class="title">'.$title.'</div>';
$guestc = $db->query("SELECT * FROM guests WHERE time > '".(TIME - 400)."'"
->num_rows;
echo '<a href="/guests" class="menudiv">Гости онлайн <span class="count_r">'.$guestc.'</span></a>';
$userc = $db->query("SELECT * FROM user WHERE lvisit > '".(TIME - 400)."'"
->num_rows;
$start = nav($userc);
$user = $db->query("SELECT * FROM `user` WHERE `lvisit` > '".(TIME - 400)."' ORDER BY `lvisit` DESC LIMIT ".$start['s'].",".$limit.""
;
while($us = $user->fetch_assoc()) {
echo '<div class="content">
'.namel($us['id']).'<br>
Последний визит: '.otime($us['lvisit']).'<br>';
var_dump($ulog);
var_dump($upass);
if($user['access'] > 0)
$where = explode(",", $us['where']);
echo 'IP: '.$us['ip'].'<br>
Браузер: '.$us['browser'].'<br>
Местоположение: <a href="'.HOME.trim($where[1]).'">'.$where[0].'</a>';
echo '</div>';
}
if($start['k_post'] < 1)
text('Пусто, не видно?');
if($start['k_page'] > 1)
echo str(HOME.'/online?', $start['k_page'], $start['page']);
include '../inc/foot.php';
?>
Работает:
<?php
$title = 'Кабинет';
include '../inc/core.php';
include '../inc/head.php';
auth();
echo '<div class="title">'.$title.'</div>';
echo '<a href="/id'.$user['id'].'" class="menudiv">'.name($user['id']).'</a>';
echo '<a href="/add_blog" class="menudiv">Написать блог</a>';
echo '<a href="/set" class="menudiv">Настройки</a>';
if($user['access'] > 0)
echo '<a href="/admin/" class="menudiv">Панель управления</a>';
var_dump($ulog);
var_dump($upass);
echo '<a href="/exit" class="menudiv">Выход</a>';
include '../inc/foot.php';
?>