Файл: modules/stats.php
Строк: 116
<?php
session_start();
define('NTOP', 1);
$title = 'Информация о сайте';
require_once('../system/connect.php');
require_once('../system/core.php');
require_once('../system/function.php');
require_once('../system/head.php');
$isset = mysql_query("SELECT * FROM `".$prefix."sait` WHERE `id` = '".$id."'");
if(mysql_num_rows($isset) == 0){
echo "<div class='error'>";
echo "Сайта нет в базе! <br/>";
echo "</div>";
}else{
$online_sait = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."sait_online` WHERE `id_sait` = '".$id."'"));
$user = mysql_fetch_array($isset);
if($user['ban'] == 1){
echo "<div class='error'>";
echo "Сайта забанен! <br/>";
echo "</div>";
require_once('foot.php');
exit;
}
if($user['status'] == 0){
echo "<div class='error'>";
echo "Вы не можете смотреть статистику данного сайта , так как он проходит модерацию! <br/>";
echo "</div>";
require_once('foot.php');
exit;
}
echo'<div id="container" class="container main-container" data-spy="affix" data-offset-top="160">
<!-- Breadcrumbs -->
<ol class="breadcrumb">
<li><a href="/">Главная</a></li>
<li class="active">'.$user['url'].'</li>
</ol>
<!-- End of Breadcrumbs -->
<section role="main">
<header class="project-header">
<h1>'.$user['url'].' </h1>
<div class="project-card">
<div class="row">
<div class="col-xs-6 project-banner">
<img src="http://mini.s-shot.ru/468x90/468/png/?'.$user['url'].'" alt="" class="img-responsive">
</div>
<div class="col-xs-2 project-rating">
<div class="project-rating-inner">
<span>СЕГОДНЯ</span><span class="project-rating__qty">'.$user['hosts'].'/'.$user['hits'].'</span>
</div>
</div>
<div class="col-xs-2 project-rating">
<div class="project-rating-inner">
<span>ВСЕГО</span><span class="project-rating__qty">'.$user['all_hosts'].'/'.$user['all_hits'].'</span>
</div>
</div>
<div class="col-xs-2 project-btn"><a href="http://'.$set['home'].'/out/'.$user['id'].'" class="btn btn-info btn-fav addToFavorites">ПЕРЕЙТИ</a></div>
</div>
</div>
<div class="project-social">
<script type="text/javascript" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="utf-8"></script>
<script type="text/javascript" src="//yastatic.net/share2/share.js" charset="utf-8"></script>
<div class="ya-share2" data-services="vkontakte,facebook,gplus,twitter" data-counter=""></div>
</div>
</header>';
switch($act){
default:
mysql_query("UPDATE `top_sait` SET `count` = `count`+1 WHERE `id` = '".$id."'");
$category = mysql_fetch_array(mysql_query("SELECT * FROM `".$prefix."cat` WHERE `id` = '".$user['category']."'"));
echo'<div class="project-body">
<!-- Nav tabs -->
<ul class="nav nav-pills tab-pills project-pills" role="tablist">
<li class="active"><a href="/stats/'.$user['id'].'"><i class="fa fa-newspaper-o"></i> О ПРОЕКТЕ</a></li>
</ul>';?>
<!-- Tab panes -->
<div class="tab-content">
<!-- About Project Tab -->
<div role="tabpanel" class="tab-pane active" id="project-about">
<h2>О проекте</h2>
<p><?echo''.$user['about'].'';?></p>
<table class="table project-info-table">
<tr>
<td><i class="fa fa-link"></i> Сайт</td>
<td><a href="http://<?echo''.$user['url'].'';?>" rel="nofollow" target="_blank">http://<?echo''.$user['url'].'';?></a></td>
</tr>
<tr>
<td><i class="fa fa-bar-chart"></i> Просмотров</td>
<td><?echo''.$user['count'].''?></td>
</tr>
<tr>
<td><i class="picol_group_full"></i> Онлайн</td>
<td><?echo''.$online_sait.''?></td>
</tr>
<tr>
<td><i class="fa fa-globe"></i> Категория</td>
<td><?echo''.$category['name'].''?></td>
</tr>
<tr>
<td><i class="picol_user_half_settings"></i> Администратор</td>
<td><a href="/modules/info.php?id=<?echo''.$user['id_user'].'';?>"><img src="/images/ava.png" alt="" class="project-info-table__user"><?echo''.uname($user['id_user']).'';?></a></td>
</tr>
</table>
</div>
</div>
</div>
</section>
<?
echo "<div class='tiz'>";
echo "<strong>";
echo "Популярность в поисковиках";
echo "</strong>";
echo "</div>";
echo "<div class='main'><div class='mains'>";
echo "Google PR:";
echo "<b>";
echo " ".$user['pr']." ";
echo "</b>";
echo "<br />";
echo "Яндекс тИЦ:";
echo "<b>";
echo " ".$user['cy']." ";
echo "</b>";
echo "<br />";
echo "</div></div>";
echo "<div class='tiz'>";
echo "<strong>";
echo "Счётчик тИЦ и PR";
echo "</strong>";
echo "</div>";
echo "<div class='main'><div class='mains'>";
echo "<a href='http://".$set['home']."/stats/".$id."'>";
echo "<img src='http://".$set['home']."/info/".$user['id']."' alt='SEO анализ сайта ".$user['url']."'/>";
echo "</a>";
echo "</br>";
echo "<a href='http://".$set['home']."/stats/".$id."/seo'>";
echo "Код счетчика";
echo "</a>";
echo "</div></div>";
echo "<center>";
?>
<div class="yashare-auto-init" data-yashareL10n="ru"
data-yashareQuickServices="vkontakte,facebook,twitter,odnoklassniki,moimir,gplus" data-yashareTheme="counter"
></div> </script>
</div></div>
<?
break;
case "seo":
?>
Код счётчика тИЦ и PR:
<br/><br/>
<?echo "<img src='http://".$set['home']."/info/".$user['id']."' alt='SEO анализ сайта ".$user['url']."'/>";?><br/><br/>
</br>
<textarea size="60" maxlength="512" class="form-control" cols='20' rows='4'>
<?echo "<a href='http://".$set['home']."/stats/".$user['id']."'><img src='http://".$set['home']."/info/".$user['id']."' alt='SEO анализ сайта ".$user['url']."'/>";?>
</a>
</textarea>
<br/><br/>Код счётчика PR:
<br/><br/>
<?echo "<img src='http://".$set['home']."/info/".$user['id']."/pr' alt='SEO анализ сайта ".$user['url']."'/>";?><br/><br/>
</br>
<textarea size="60" maxlength="512" class="form-control" cols='20' rows='4'>
<?echo "<a href='http://".$set['home']."/stats/".$user['id']."'><img src='http://".$set['home']."/info/".$user['id']."/pr' alt='SEO анализ сайта ".$user['url']."'/>";?>
</a>
</textarea>
<br/><br/>Код счётчика ТИЦ:
<br/><br/>
<?echo "<img src='http://".$set['home']."/info/".$user['id']."/cy' alt='SEO анализ сайта ".$user['url']."'/>";?><br/><br/>
</br>
<textarea size="60" maxlength="512" class="form-control" cols='20' rows='4'>
<?echo "<a href='http://".$set['home']."/stats/".$user['id']."'><img src='http://".$set['home']."/info/".$user['id']."/cy' alt='SEO анализ сайта ".$user['url']."'/>";?>
</a>
</textarea>
<?
break;
}
}
require_once('../modules/foot.php');
?>