File size: 682B
<?php
class prava_admin
{
function admin_position()
{
global $id;
$users_prava = mysql_fetch_array(mysql_query("SELECT * FROM users WHERE id=$id"));
if($users_prava['team'] == 6)
{echo '<b>Создатель</b>';}
elseif($users_prava['team'] == 5)
{echo '<b>Главный администратор</b>';}
elseif($users_prava['team'] == 4)
{echo '<b>Администратор</b>';}
elseif($users_prava['team'] == 3)
{echo '<b>Супермодератор</b>';}
elseif($users_prava['team'] == 2)
{echo '<b>Модератор</b>';}
elseif($users_prava['team'] == 1)
{echo '<b>Пользователь</b>';}
}
}
$users_position = new prava_admin;
?>