Файл: top_reit/rustats.su/system/view/stat/index.tpl
Строк: 109
<?php
$site = Core::query("SELECT * FROM `user_sites` WHERE `id` =
?", array($_GET['get'])) -> fetch();
$cat =
Core::query("SELECT * FROM `category` WHERE `id` = ?",
array($site['category'])) -> fetch();
$online= Core::count("SELECT
COUNT(*) FROM `ip` WHERE `time`>'".(time()-600)."' AND
`id_site`='".$site['id']."'");
?>
<div
class="h4"><img src="http://mini.s-shot.ru/?<?echo
$site['url'];?>" alt="*" style="max-width:100%;
border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
border-top-right-radius: 20px; border-top-left-radius:
20px;"/><br/>
</div>
<div
class="rr">Общее</div>
<div
class="h4">
<b>Идентификатор:</b>
<?php echo Protect::title($site['id']); ?><br
/>
<b>Название:</b> <?php echo
Protect::title($site['title']); ?><br />
<? echo
'<b>Ссылка:</b> <a target="_blank"
href=http://rustats.su/out?get='.$site['id'].'>'.Protect::title($site['url']).'</a><br
/>';?>
<b>Описание:</b> <?php echo
Protect::text($site['opis']); ?><br
/>
<b>Категория:</b> <?php echo '<a
href="/category/sites/'.$cat['id'].'">'.Protect::text($cat['name']).'</a>';
?><br/>
</div>
<div
class="rr">Статистика</div>
<div
class="h4"><?
require('seo.php');
echo
'<b>Яндекс тИЦ:</b>
'.getTCY(Protect::title($site['url'])).'<br/>';?>
<b>Google
PageRank</b>: <?echo
PR(Protect::title($site['url']));?><br/>
<b>SEO
счетчик:</b> <?echo '<img
src="http://rustats.su/informer/seo/'.$site['id'].'">';?><br/>
<b>Сейчас
на сайте:</b> <?echo $online;?><br/>
<b>За
/ Против:</b> <font color="green"><? echo
$site['plus'];?></font>/<font color="red"><?
echo $site['minus'];?></font>
( <a href=/stat/plus/<?echo
$site['id'];?>><font
color="green">+</font></a> | <a
href=/stat/minus/<?echo $site['id'];?>><font
color="red">-</font></a> )
<br/>
<b>За сегодня</b>
<table width="100%"
cellspacing="1">
<tr>
<td
align="center" width="25%" style="border:1px solid
#000">Хосты</td>
<td align="center"
width="25%" style="border:1px solid
#000">Хиты</td>
<td align="center"
width="25%" style="border:1px solid #000">В
топ</td>
<td align="center"
width="25%" style="border:1px solid #000">Из
топа</td>
</tr><tr>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['host'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['hit'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['v_top'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo
$site['iz_top'];?></td>
</tr>
</table>
<b>За
вчера</b>
<table width="100%"
cellspacing="1">
<tr>
<td
align="center" width="25%" style="border:1px solid
#000">Хосты</td>
<td align="center"
width="25%" style="border:1px solid
#000">Хиты</td>
<td align="center"
width="25%" style="border:1px solid #000">В
топ</td>
<td align="center"
width="25%" style="border:1px solid #000">Из
топа</td>
</tr><tr>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['host_day'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['hit_day'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['v_top_day'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo
$site['iz_top_day'];?></td>
</tr>
</table>
<b>За
неделю</b>
<table
width="100%"cellspacing="1">
<tr>
<td
align="center" width="25%" style="border:1px solid
#000">Хосты</td>
<td align="center"
width="25%" style="border:1px solid
#000">Хиты</td>
<td align="center"
width="25%" style="border:1px solid #000">В
топ</td>
<td align="center"
width="25%" style="border:1px solid #000">Из
топа</td>
</tr><tr>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['host_week'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['hit_week'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['v_top_week'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo
$site['iz_top_week'];?></td>
</tr>
</table>
<b>За
все время</b>
<table
width="100%"cellspacing="1">
<tr>
<td
align="center" width="25%" style="border:1px solid
#000">Хосты</td>
<td align="center"
width="25%" style="border:1px solid
#000">Хиты</td>
<td align="center"
width="25%" style="border:1px solid #000">В
топ</td>
<td align="center"
width="25%" style="border:1px solid #000">Из
топа</td>
</tr><tr>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['host_all'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['hit_all'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo $site['v_top_all'];?></td>
<td
align="center" width="25%" style="border:1px solid
#000"><? echo
$site['iz_top_all'];?></td>
</tr>
</table>
<b>Статистика
по:</b> <a href=/stat/week/<?echo
$site['id'];?>><font
color="#000">дням</font></a>
| <a
href=/stat/ip/<?echo $site['id'];?>><font
color="#000">ip</font></a>
| <a
href=/stat/hours/<?echo $site['id'];?>><font
color="#000">часам</font></a>
| <a
href=/stat/online/<?echo $site['id'];?>><font
color="#000">online</font></a>
| <a
href=/stat/browser/<?echo $site['id'];?>><font
color="#000">браузерам</font></a>
</div><?php
if($user['id']
== $site['id_user'] or User::ifAdmin(1)){ ?>
<div
class="rr">Управление</div>
<div
class="h4"><a href="/admin/edit_area/<?php echo
$site['id']; ?>">Ред</a> |
<a
href="/admin/del_area/<?php echo $site['id'];
?>">Удл</a> |
<a href="/cabinet/kod/<?php
echo $site['id']; ?>">HTML код для
установки</a></div>
<?php } echo
'</div>';?>