Файл: vsime.com/users/index.php
Строк: 112
<?php
include('../system/includes/system.php');
$links_hist['name'] = "$config[site_name] / Пользователи";
$links_hist['link'] = "/users/";
$title = 'Пользователи';
if (isset($_GET['rating']))
{
$title .= ' - По рейтингу';
ex_head();
include('../users/inc/act_users.php');
echo "<style>
.border {border-left: 1px solid #B3B3B3;border-right: 1px solid #B3B3B3;}
</style>";
echo "<div class='border'>n";
echo "<div class='b_switcher'><table width='100%'><tbody><tr><td><span class='active_item'>По рейтингу</span></td><td><a href='/users/?online' class='blue_link'>Онлайн</a></td></tr></tbody></table></div>";
echo '</div>';
$count_results = mysqli_num_rows(mysqli_query($dbi, "SELECT * FROM `user`"));
$count_pages = count_pages($count_results);
$page = page();
$start = start_pages();
if ($count_results == 0)
{
echo "<div class='list'>n";
echo "Нет пользователейn";
echo "</div>n";
}
$query = mysqli_query($dbi, "SELECT * FROM `user` ORDER BY `akt_rating` DESC LIMIT $start, $config[rop]");
while ($post = mysqli_fetch_array($query))
{
echo $i % 2 ? '<div class="list">' : '<div class="list">';
echo "<div class='left'>n";
show_avatar($post['id'], 'big', 1, 1);
echo "</div>n";
echo "<div class='overfl_hid'>n";
echo "<span style='float:right;' class='light_text'> ".show_akt_rating($post['id'])."</span>n";
echo profile_icon($post['id']).profile_nick($post['id'], 1).profile_medal($post['id'])."<br />n";
echo "Посл. посещение: ".vremja($post['date_last'])."n";
echo "</div>n";
echo "<div class='clear'></div>n";
$i++;
echo "</div>n";
}
pages_show("?rating&");
ex_foot();
}
if (isset($_GET['online']))
{
$title .= ' - Онлайн';
ex_head();
include('../users/inc/act_users.php');
echo "<style>
.border {border-left: 1px solid #B3B3B3;border-right: 1px solid #B3B3B3;}
</style>";
echo "<div class='border'>n";
echo '<div class="b_switcher"><table width="100%"><tbody><tr><td><a href="/users/?rating" class="blue_link">По рейтингу</a></td><td><span class="active_item">Онлайн</span></td></tr></tbody></table></div>';
echo "</div>n";
$count_results = mysqli_num_rows(mysqli_query($dbi, "SELECT * FROM `user` WHERE `date_last` > '".(time()-600)."'"));
$count_pages = count_pages($count_results);
$page = page();
$start = start_pages();
if ($count_results == 0)
{
echo "<div class='list'>n";
echo "Нет пользователей онлайнn";
echo "</div>n";
}
$query = mysqli_query($dbi, "SELECT * FROM `user` WHERE `date_last` > '".(time()-600)."' ORDER BY `id` ASC LIMIT $start, $config[rop]");
while ($post = mysqli_fetch_array($query))
{
echo $i % 2 ? '<div class="list">' : '<div class="list">';
echo "<div class='left'>n";
show_avatar($post['id'], 'big', 1, 1);
echo "</div>n";
echo "<div class='overfl_hid'>n";
echo "<span style='float:right;' class='light_text'> ".show_akt_rating($post['id'])."</span>n";
echo profile_icon($post['id']).profile_nick($post['id'], 1).profile_medal($post['id'])."<br />n";
echo "Посл. посещение: ".vremja($post['date_last'])."<br />";
echo "</div>n";
echo "<div class='clear'></div>n";
$i++;
echo "</div>n";
}
pages_show("?online&");
ex_foot();
}
ex_head();
include('../users/inc/act_users.php');
echo "<style>
.border {border-left: 1px solid #B3B3B3;border-right: 1px solid #B3B3B3;}
</style>";
echo "<div class='border'>n";
echo "<div class='b_switcher'><table width='100%'><tbody><tr><td><span class='active_item'>По рейтингу</span></td><td><a href='/users/?online' class='blue_link'>Онлайн</a></td></tr></tbody></table></div>";
echo '</div>';
$count_results = mysqli_num_rows(mysqli_query($dbi, "SELECT * FROM `user`"));
$count_pages = count_pages($count_results);
$page = page();
$start = start_pages();
if ($count_results == 0)
{
echo "<div class='list'>n";
echo "Нет пользователейn";
echo "</div>n";
}
$query = mysqli_query($dbi, "SELECT * FROM `user` ORDER BY `akt_rating` DESC LIMIT $start, $config[rop]");
while ($post = mysqli_fetch_array($query))
{
echo $i % 2 ? '<div class="list">' : '<div class="list">';
echo "<div class='left'>n";
show_avatar($post['id'], 'big', 1, 1);
echo "</div>n";
echo "<div class='overfl_hid'>n";
echo "<span style='float:right;' class='light_text'> ".show_akt_rating($post['id'])."</span>n";
echo profile_icon($post['id']).profile_nick($post['id'], 1).profile_medal($post['id'])."<br />n";
echo "Посл. посещение: ".vremja($post['date_last'])."n";
echo "</div>n";
echo "<div class='clear'></div>n";
$i++;
echo "</div>n";
}
pages_show("?");
ex_foot();
ex_foot();
?>