Размер файла: 2.58Kb
<?php
#############################################
# 0JXRgdC70Lgg0YLRiyDRh9C40YLQsNC10YjRjCDRj #
# dGC0L4g0YHQvtC+0LHRidC10L3QuNC1LCDQt9C90L #
# DRh9C40YIg0YLRiyDQvdC10LzQvdC+0LPQviDQt9C #
# 90LDQtdGI0YwgUEhQIQ== #
#__---------------------------------------__#
#__ 0JrQu9C40Log0JrQu9GD0LE= __#
# --------------------------------------- #
# 0JDQstGC0L7RgCA6IE1vcmdhbg== #
# SUNRIDog0L3QtSDRgdC60LDQttGDIHhE #
# #
#############################################
require 'inc/start.php';
require 'inc/regvars.php';
require 'inc/db.php';
require 'inc/config.php';
require 'inc/funct.php';
require 'inc/antidos.php';
require 'inc/gzip.php';
require 'inc/header.php';
$title = 'Кто Online';
require 'inc/head.php';
echo '<div class="sec">
Кто OnLine
</div><div class="vstavka">';
$col = mysql_result(query("SELECT COUNT(*) FROM `$db[prefix]online`"),0);
$res_g = query("SELECT * FROM `$db[prefix]online` WHERE `id_user` = '0' ORDER BY `time` DESC");
$res_aut = query("SELECT * FROM `$db[prefix]online` WHERE `id_user` <> '0' ORDER BY `time` DESC");
echo 'Всего : '.$col.' <br />
Авторизованных : '.mysql_num_rows($res_aut).' <br />
Гостей : '.mysql_num_rows($res_g).' <br />
<br />
';
if(mysql_num_rows($res_aut)>0)
{
echo '<div class="ie"><b>Авторизованные</b> : </div>';
while($u_a = mysql_fetch_array($res_aut))
{
echo '• ';
if($user_in_site == 1) { echo userlogin($u_a['id_user'],1,1,$mfvl,1); }
else{ echo userlogin($u_a['id_user'],1);}
echo ' - <b>'.formatdate($u_a['time'],'G:i:s').'</b>';
if($user_prof['admin']>=2)
{
echo '<br />
URL : <a href="'.$u_a['where'].'">'.$u_a['where'].'</a><br />
<span class="info">('.$u_a['ip'].' - '.find_cut($u_a['ua'],' ','up').')</span><br />'; }
echo '<br />';
}
}
if(mysql_num_rows($res_g)>0)
{
echo '<div class="ie"><b>Гости</b> : </div>';
while($u_g = mysql_fetch_array($res_g))
{
echo '• Гость - <b>'.formatdate($u_g['time'],'G:i:s').'</b>';
if($user_in_site == 1 && $user_prof['admin']>=2) { echo '<br />
URL : <a href="'.$u_g['where'].'">'.$u_g['where'].'</a><br />
<span class="info">('.$u_g['ip'].' - '.find_cut($u_g['ua'],' ','up').')</span><br />'; }
echo '<br />';
}
}
require 'inc/foot.php';
################################################
# 0KHQutGA0LjQv9GCINC90LUg0L/QsNCx0LvQuNC6IQ== #
# 0KHRgtCw0LLRgNC+0L/QvtC70YwsIDIwMDkg0LMu #
################################################
?>