Файл: Arhmobi_esdcms/sys/ajax/kto.php
Строк: 37
<?php
include_once '../../sys/inc/start.php';
$q = $db->query("SELECT `users_online`.*, `users`.`login` AS `login` FROM `users_online` LEFT JOIN `users` ON `users_online`.`id_user` = `users`.`id` WHERE `users_online`.`request` LIKE '%chat_mini%' AND `users_online`.`time_last` > '" . (TIME - 3600) . "'") ;
$res = $q->fetchAll() ;
$online = array() ;
foreach($res AS $users){
$ank = new user($users['id_user']) ;
$online[] = $ank->show() ;
}
$online = implode(', ', $online) ;
$listing = new listing() ;
$post = $listing->post() ;
$post->title = 'Кто здесь?' ;
$post->icon('info') ;
$post->post = $online ;
$listing->display() ;
?>