Файл: modules/ban.php
Строк: 73
<?php
define('NTOP', 1);
$title = 'БАН - Лист';
require_once ('../system/connect.php');
require_once ('../system/core.php');
require_once ('../system/function.php');
require_once ('../system/head.php');
require_once ('../system/panel.php');
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">Заблокированные сайты</li>
</ol>
<!-- End of Breadcrumbs -->
<!-- Main Content -->
<section role="main">
<header class="main-page-header">
<h1>Заблокированные сайты</h1>
<div class="social-share">
<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>';
$count = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."sait` WHERE `ban` = '1'"));
if($count > 0){
$total=intval(($count-1)/$page_sait)+1;
$page=abs(intval($_GET['page']));
if(empty($page) OR $page < 0){
$page = 1;
}
if($page > $total){
$page = $total;
}
$past=intval($count/$page_sait);
$start=$page*$page_sait-$page_sait;
$saits = mysql_query("SELECT * FROM `".$prefix."sait` WHERE `ban` = '1' ORDER BY `hosts` DESC LIMIT ".$start.",".$page_sait."");
while($row = mysql_fetch_array($saits)){
$start++;
echo'
<section class="server-pr-cards">
<div class="row">
<article class="col-xs-12 user-pr-card">
<div class="row">
<div class="col-xs-1">
<div class="user-pr-card__num">'.$start.'</div>
</div>
<div class="col-xs-11">
<div class="user-pr-card__h"><a href="http://'.$set['home'].'/stats/'.$row['id'].'">'.$row['url'].'</a></div>
<div class="row">
<div class="col-md-7 col-sm-6 user-pr-card__banner">
<a href="http://'.$set['home'].'/stats/'.$row['id'].'"><img src="http://mini.s-shot.ru/468x90/468/png/?'.$row['url'].'" alt="" class="img-responsive"></a>
</div>
<div class="col-md-5 col-sm-6 user-pr-card__info">
<div class="user-pr-card__rt"><div class="user-pr-card__rt-inner"><span>СТАТА</span><span class="user-pr-card__rt-qty">'.$row['hosts'].' / '.$row['hits'].'</span></div></div>
</div>
</div>
</div>
</div>
</article>
</div>
</section>';
echo '<h1>Причина блокировки: '.$row['ban_reason'].'</h1>';
if($user_data['level'] == 2){
echo "<a class='btn btn-warning' href='http://".$set['home']."/admin/platforms.php?act=ban&id=".$row['id']."'>Разблокировать</a> <a class='btn btn-danger' href='http://".$set['home']."/admin/platforms.php?act=del_sait&id=".$row['id']."'>Удалить сайт</a>";
}
echo '</div>';
}
echo'</div></div>';
navigation($count,$page_sait,$page,'http://'.$set['home'].'/modules/ban/',$total);
}else{
echo '<label class="required">Нет забаненых сайтов!</label>';
}
echo'</div></div>';
require_once ('foot.php');
?>