Файл: soc-set/faq/admin.php
Строк: 15
<?php
require_once('../core/start.php');
check_auth();
head('Администрация');
panel();
$all = DB::$dbs->querySingle("SELECT COUNT(`user_id`) FROM ".USERS." WHERE `level` > ?", array(0));
if (empty($all)) {
echo DIV_LI . 'Администрации нет' . CLOSE_DIV;
} else {
$n = new Navigator($all,10,'');
$sql = DB::$dbs->query("SELECT `user_id`, `level` FROM ".USERS." WHERE `level` > ? ORDER BY `level` DESC LIMIT {$n->start()}, 10", array(0));
while($ank = $sql -> fetch()) {
echo DIV_LI . user_choice($ank['user_id'], 'link') . ' ['.level($ank['level']).']' . CLOSE_DIV;
}
echo $n->navi();
}
$array = array();
nav($array);
require_once('../core/stop.php');
?>