File size: 1.98Kb
<?php
// (c) vavok.net
require_once"../include/startup.php";
if (!$users->is_reg() || !$users->check_permissions(basename(__FILE__))) {
header ("Location: ../pages/input.php?action=exit");
exit;
}
if (!empty($_GET['action'])) {
$action = check($_GET["action"]);
} else {
$action = '';
}
if (!empty($_GET['page'])) {
$page = check($_GET["page"]);
} else {
$page = '';
}
if (!empty($_GET['view'])) {
$view = check($_GET["view"]);
} else {
$view = '';
}
$my_title = $lang_admin['modlist'];
require_once BASEDIR . "themes/" . MY_THEME . "/index.php";
if (empty($action)) {
echo '<img src="../images/img/user.gif" alt=""> <b>' . $lang_admin['adminlistl'] . '</b><br><br>';
$num_items = $db->count_row('vavok_users', "perm='101' OR perm='102' OR perm='103' OR perm='105'");
$items_per_page = 10;
$navigation = new Navigation($items_per_page, $num_items, $page, 'adminlist.php?'); // start navigation
$limit_start = $navigation->start()['start']; // starting point
$end = $navigation->start()['end']; // ending point
if ($num_items > 0) {
foreach ($db->query("SELECT id, name, perm FROM vavok_users WHERE perm='101' OR perm='102' OR perm='103' OR perm='105' OR perm='106' ORDER BY perm LIMIT $limit_start, $items_per_page") as $item) {
if ($item['perm'] == '101' or $item['perm'] == '102' or $item['perm'] == '103' or $item['perm'] == '105' or $item['perm'] == '106') {
$lnk = "<div class=\"a\"><a href=\"../pages/user.php?uz=" . $item['id'] . "\" class=\"sitelink\">" . $item['name'] . "</a> - " . user_status($item['perm']) . "</div>";
echo $lnk . "<br>";
}
}
}
echo $navigation->get_navigation();
}
echo '<p><a href="index.php" class="btn btn-outline-primary sitelink">' . $lang_home['admpanel'] . '</a><br>';
echo '<a href="../" class="btn btn-primary homepage">' . $lang_home['home'] . '</a></p>';
require_once BASEDIR . "themes/" . MY_THEME . "/foot.php";
?>