View file pages/admins.php

File size: 918B
<?php 
// by mides, icq: 529-899-6, mail: [email protected]

$title = 'Администрация';
require ('../config.php');
require ('../includes/start.php');
require ('../includes/functions.php');

tp('Администрация');

echo '<div class="s1">Список</div><div class="s2">';

$result = mysql_query("SELECT `user_login`, `user_access`, `user_points` FROM `users` WHERE `user_access` > 0 ORDER BY `user_access` DESC");
while($user = mysql_fetch_assoc($result)){
	if($user['user_access'] == 1){$user_access = 'Куратор';}
	elseif($user['user_access'] == 2){$user_access = 'Модератор';}
	elseif($user['user_access'] == 3){$user_access = 'Администратор';}
	echo '<a href="profile.php?u='.$user['user_login'].'">'.$user['user_login'].'</a> ['.$user_access.'] ('.$user['user_points'].')<br/>';
}

echo '</div>';
nav();

require ('../includes/tail.php');
?>