Просмотр файла admin_list/user_profile.php

Размер файла: 2.71Kb
<?php
/*
=============================================
Движок: SHCMS Engine
=============================================
Название файла: Профили пользователей
=============================================
Official website: http://shcms.ru
=============================================
*/
define('SHCMS', true);
include_once'../system/inc/basic_settings.php';
$shcmsengine['title'] = Lang::get('SHCMS Engine Управление пользователями');
include_once'../template/head.php';
registrat();
$adminka ->admin();

if($user_id and $user4['team'] != 6) {
echo errors(Lang::get('У вас недостаточно прав для доступа'));
header('Refresh: 1; url=/index.php?'.$conservation.'&');
	include_once'../template/foot.php';
exit();
}

  $allfield = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"),0);
  $newlist = new Navigation($allfield,10, true);   
$user4 = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id`='$user_id'"));
if($user4['team'] < 6)
{
    errors(Lang::get('Доступ закрыт'));
    header('Refresh: 1; url=/index.php?'.$conservation.'&');
	include_once'../template/foot.php';
    exit();
}
include_once'secu.php';
$yuser = mysql_query("SELECT * FROM `users` ORDER BY `id` DESC ". $newlist->limit()."");
$users_prof = mysql_fetch_array($yuser);

do
{
echo '
<table width="100%" class="userstop">
  <thead>
    <tr>
	<td>ID:</td>
<td>Логин пользователя: </td>
      <td align="center">'.Lang::get('Дата регистрации:').' </td>
      <td align="center">'.Lang::get('Последнее посещение:').' </td>
      <td align="center">'.Lang::get('IP адрес:').' </td>
      <td align="center">'.Lang::get('Изменить:').' </td>
    </tr>
  </thead>
  <tbody>
    <tr>
	     <td  align="center">
		'.$users_prof['id'].'
      </td>
	
      <td>
		<a class="pm_list" href="'.DIR_SHCMS.'change_view.php?id='.$users_prof['id'].'">'.$users_prof['login'].'</a>
      </td>

            <td align="center">'.$timedate->times($users_prof['datereg']).'</td>
      <td align="center">'.$timedate->times($users_prof['datelast']).'</td>
      <td align="center">'.long2ip($users_prof['ip']).'</td>
      <td align="center">
        [ 
        <a href="user_edit.php?id='.$users_prof['id'].'">'.Lang::get('Изм').'</a>
         ]
		      [ 
        <a href="ban.php?id='.$users_prof['id'].'">'.Lang::get('Бан').'</a>
         ]
      </td>
    </tr>
  </tbody>
</table>
';

}
while($users_prof = mysql_fetch_array($yuser));
echo '<div class="pages">';
echo $newlist->pagination();
echo '</div>';

	include_once'../template/foot.php';
?>