Просмотр файла pages/admins.php

Размер файла: 1.8Kb
<?php
/*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//
// Sitchi CMS - Mobile Content Management System //
// The author:  Nikoloz Sitchinava [sitchi]      //
// Link:        http://sitchicms.num.ge          //
// Skype:       SitchiCMS                        //
// License:     LICENSE.txt (see attached file)  //
// Version:     VERSION.txt (see attached file)  //
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
define('_SITCHICMS', 1);
$root_path='../'; 
require $root_path.'includes/db_connect.php';
require $root_path.'includes/start.php';
require $root_path.'includes/header.php';
require $root_path.'includes/functions.php';
require $root_path.'includes/head.php'; // თავი
head(''.$lng['1_47'].'');
echo'<div class="hdr"><b>'.$lng['1_47'].'</b></div>';
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `level`>=2 "), 0);
$k_page=k_page($k_post,$set['p_count']);
$page=page($k_page);
$start=$set['p_count']*$page-$set['p_count'];
$q = mysql_query("SELECT * FROM `users` WHERE `level`>=2 ORDER BY level DESC LIMIT $start, $set[p_count]");
if ($k_post==0)
{
echo'<div class="errmenu">' .
''.$lng['1_51'].'' .
'</div>';
}
while ($ank = mysql_fetch_assoc($q))
{
echo'<div class="menu">';
echo'<img src="/themes/'.$set['set_them'].'/images/sqe_'.$ank['sqe'].'.png" alt="" /><a href="/pages/info.php?id='.$ank['id'].'"> '.$ank['login'].'</a>'.online($ank['id']).'<br/>';
user_status ($ank['level']);
echo'<br/>'.$lng['1_39'].': '.timef($ank['lastvisit']).'<br/>';
echo'</div>';
}
if ($k_page>1)str("?",$k_page,$page); // გვერდების გამოტანა
if (isset($_SERVER['HTTP_REFERER']))
echo'<a href="'.htmlspecialchars($_SERVER['HTTP_REFERER']).'"> '.$lng['1_50'].'</a>';
require $root_path.'includes/end.php'; // დასასრული
?>