<?
if ($post['shut']==0 && $post['umnik']==0)
{
$post_user_id=$post['id_us'];
$q = mysql_query("SELECT * FROM `$mysql[pref]users` WHERE `id` = '$post_user_id';");
$post_user = mysql_fetch_array($q);
$stat='';
if ($post_user['level']==1)
{
$stat=" <span style=\"color:$color[level]\">mod</span>";
}
if ($post_user['level']==2)
{
$stat=" <span style=\"color:$color[level]\">smd</span>";
}
if ($post_user['level']==3)
{
$stat=" <span style=\"color:$color[level]\">adm</span>";
}
if ($post_user['level']==4)
{
$stat=" <span style=\"color:$color[level]\">adm</span>";
}

if ($post_user['time']>time()-$set['time_sess'])
{
$on="<span style=\"color:$color[on]\">on</span>";
}
else
{
$on="<span style=\"color:$color[off]\">off</span>";
}
}
else
{
$on="<span style=\"color:$color[on]\">on</span>";
$stat=" <span style=\"color:$color[level]\">bot</span>";
}



?>
