Файл: anibiliwar.ru/admins.php
Строк: 28
<?php
  include './system/common.php';
    
 include './system/functions.php';
         
      include './system/user.php';
    
if(!$user) {
  header('location: /');
    
exit;
}
    
    $title = 'Список администрации';
include './system/h.php';  
?>
<div class='title'><?=$title?></div>
<div class='dot-line'></div>
<?
    $max = 10;
  $count = mysql_result(mysql_query('SELECT COUNT(*) FROM `users` WHERE `access` = "2"'),0);
  $pages = ceil($count/$max);
   $page = _string(_num($_GET['page']));
    if($page > $pages) {
    
   $page = $pages;
    
    }
  
    if($page < 1) {
    
   $page = 1;
    
    }
    
  $start = $page * $max - $max;
if($count > 0) {
?>
<div class'list'>
<?
$q = mysql_query('SELECT * FROM `users` WHERE `access` = "2" ORDER BY `online` DESC LIMIT '.$start.', '.$max.'');
  while($row = mysql_fetch_array($q)) {
  
?>
<img src='/images/icon/race/<?=$row['r'].($row['online'] > (time() - 2000) ? '':'-off')?>.png' alt='*'/> <a href='/user/<?=$row['id']?>/'><?=$row['login']?></a><br/>
<?
  }
?>
<?=pages('/admins/?');?>
</div>
<?
  }
  else
  {
?>
<div class='content'>
<font color='#999'>Администрации нет</font>
</div>
<?
  }
  
include './system/f.php';
?>