File size: 558B
<?php
$title = 'Пользователи сайта';
require("../system/core.php");
echo '<div class="phdr">' .$lng ['list'] . ' </div><div
class="bmenu">';
$result = mysql_query("SELECT * FROM `users` ORDER BY `reg_time` DESC");
while($user = mysql_fetch_assoc($result)){
echo '<div class="menu"><a
href="profile.php?id='.$user['id'].'">'.$user['login'].'
</a></div>';
switch ($user[rights]) {
case"1":
echo'Пользователь';
break;
case"2":
echo'<li>Админ';
break; }
}
echo '</div>';
nav();
require("../system/end.php");
?>