Размер файла: 940B
<? $page_name="Список администаторов"; include("include/1.php"); require "include/avto.php";
$all_user1=mysql_query("select * from `shurik_users` where `admin`>0 order by `admin` desc");
if(mysql_num_rows($all_user1)<1) echo error("Админов нету 0_о");
$all_user2=mysql_fetch_array($all_user1);
do{
if($all_user2['admin']==1)$ad="<font color=green>[Модератор]</font>";
if($all_user2['admin']==2)$ad="<font color=blue>[Администратор]</font>";
if($all_user2['admin']==3)$ad="<font color=red>[Главный администратор]</font>";
$date=date("ndHis");
$time=$all_user2['online'];
if ($time+45 > $date) $st_on = "<span style='color:green'>[ON]</span>";
else $st_on = "<span style='color:red'>[OFF]</span>";
echo "$st_on <a href=user/$all_user2[id]>$all_user2[echologin]</a> $ad<br><small>Баллов: $all_user2[ball]</small><hr style=color:white>";}
while($all_user2=mysql_fetch_array($all_user1));
include("include/2.php"); ?>