View file adminpanel/users.php

File size: 1.11Kb
<? //by rine(Andrey Arapov) & BEPDuKT(Aleksey Ivanov) site: dizkod.ruphp
$path=1;
include_once('../config/config.php');
include_once('../config/function.php');
Base::$site = $url;
$user=new Users();
$user->sess();
$access=$user->access();
if($access==1){

Base::head();


echo'<div class="title">Пользователи</div>';
	$set=Base::settings('user');
    $k_post=mysql_result(mysql_query("SELECT COUNT(*) from `user`"),0);
    $k_page=k_page($k_post,$set);
    $page=page($k_page,$_GET['page']);
    $start=$set*$page-$set;
    $q=mysql_query("SELECT * FROM `user` ORDER BY `id` DESC LIMIT $start,$set");
    if($k_post==0){
    	echo "ПОЛЬЗОВАТЕЛЕЙ НЕТ!";
    	}
    	while($user=mysql_fetch_array($q))
    	{
		    echo'<div class="raine">';
    		echo"<img src='../style/images/user.png' title='catigory'/> <a href='ank_users.php?id=".$user[id]."'>".$user[login]."[".$user[datereg]."]</a><br />";
            echo"</div>";
    	  }

    if($k_page>1)str('users.php?',$k_page,$page);




Base::foot();
}else{
	Base::head();
	echo'Ошибка!!!';
	Base::foot();
	}
?>