Файл: user/inc/users_new.php
Строк: 51
<?php
$set['title'] = 'Новые пользователи';
$k_post = count::query('user', " `date_reg` > '" . (time() - $set['user_reg_time']) . "'");
$k_page = k_page($k_post, $set['p_str']);
$page = page($k_page);
$start = $set['p_str'] * $page - $set['p_str'];
$q = query("SELECT `id` FROM `user` WHERE `date_reg` > '" . (time() - $set['user_reg_time']) . "' ORDER BY `date_last` DESC LIMIT $start, $set[p_str]");
if ($k_post == 0) {
echo "<div class='list-group-item'>";
echo "<span class='fa fa-info-circle fa-fw'></span> " . lang('Новых пользователей нет');
echo "</div>";
}
while ($ank = mysql_fetch_assoc($q)) {
$ank = get_user($ank['id']);
echo "<table class='list-group-item'><tr><td class='icon14'>";
avatar($ank['id'], 50, 50);
echo '</td><td class="null">';
echo nick($ank['id']);
if ($user['id'] != $ank['id']) {
echo "<span style='float:right;'>";
echo "<a href='/mail.php?id=$ank[id]'><span class='fa fa-envelope fa-2x'></span></a>";
echo "</span>";
}
echo "<br />Регистрация: <span style='color:grey;'>" . date::time($ank['date_reg']) . "</span><br />n";
echo "Посл. посещение: <span style='color:grey;'>" . date::times($ank['date_last']) . "</span><br />n";
/*
if (user_access('user_collisions') and $user['level'] > $ank['level'] and $set['user_collision_online'] == 1) {
echo '<small>';
$mass[0] = $ank['id'];
$collisions = user_collision($mass);
if (count($collisions) > 1) {
echo "Возможные ники:n";
for ($i = 1; $i < count($collisions); $i++) {
$ank_coll = mysql_fetch_assoc(query("SELECT * FROM `user` WHERE `id` = '$collisions[$i]' LIMIT 1"));
echo "<a href='/" . $ank_coll['mylink'] . "'>" . nick($ank_coll['nick']) . "</a>";
}
}
echo '</small>';
}
*
*/
echo '</td></tr></table>';
}
if ($k_page > 1) {
str("?", $k_page, $page);
}