Файл: users/people.php
Строк: 22
<?php
define('R', $_SERVER['DOCUMENT_ROOT']);
define('S', R.'/system');
require_once(R.'/system/kernel.php');
$tmp->header('users');
User::panel();
$count=$db->fass("SELECT COUNT(id) as count FROM `users`");
$posts=$count['count'];
if($posts==0){
$tmp->div('block', Language::config('no_users'));
}
$total = (($posts-1)/$num)+1;
$total = intval($total);
$page = intval($page);
if(empty($page) or $page<0) $page=1;
if($page>$total) $page=$total;
$start=$page*$num-$num;
$u= $db->query("SELECT * FROM `users` ORDER BY id ASC LIMIT ".$start.", ".$num." ");
while($user=$u->fetch_assoc())
{
$tmp->div('menu', nick($user['id']).' ('. times($user['date_last_entry']). ')');
}
page('?');
$tmp->footer();
?>