View file xmyx.ru/ban.php

File size: 2.96Kb
<? 

include_once 'sys/inc/start.php'; 

include_once 'sys/inc/compress.php'; 

include_once 'sys/inc/sess.php'; 

include_once 'sys/inc/home.php'; 

include_once 'sys/inc/settings.php'; 

include_once 'sys/inc/db_connect.php'; 

include_once 'sys/inc/ipua.php'; 

include_once 'sys/inc/fnc.php'; 

$banpage=true; 

include_once 'sys/inc/user.php'; 

only_reg(); 

$set['title']='Вы заблокированы!'; 

include_once 'sys/inc/thead.php'; 

shapka_VK(false, '', 'Вы заблокированы'); 

err(); 

$user['nick'] = u_nick($user['id']);

 

 

if (!isset($user)){header("Location: /?".SID);exit;} 

mysql_query("UPDATE `ban` SET `view` = '0' WHERE `id_user` = '$user[id]'"); // увидел причину бана 

?>
<div class="basisProfile pcont fit_box">

<div class="owner_panel profile_panel">
<?= avka100($user['id'], 'pp_img')?>
<div class="pp_cont">
<h2 class="op_header"><?= $user['nick']?>
<?
if($user['ofical'] == 1){
?>
<b class="verified"></b>
<?
}
?>
</h2>
<div class="pp_last_activity ">
<span class="pp_last_activity_text"><?= on_VK($user['id'])?></span>
</div>
<?


$my_age_day = array('год', 'года', 'лет');
// Определяем сколько лет	
$user['ank_age'] = null;
if ($user['ank_d_r'] != NULL && $user['ank_m_r'] != NULL && $user['ank_g_r'] != NULL){
	$user['ank_age'] = date("Y")-$user['ank_g_r'];
	if (date("n") < $user['ank_m_r'])
	$user['ank_age'] = $user['ank_age'] - 1;
	elseif (date("n") == $user['ank_m_r']&& date("j") < $user['ank_d_r'])
	$user['ank_age'] = $user['ank_age'] - 1;
}
?>
<div class="pp_info">
<?
if ($user['ank_d_r'] != NULL && $user['ank_m_r'] != NULL && $user['ank_g_r'] != NULL && $user['ank_data'] == 1){
?>
<?= des2num($user['ank_age'], $my_age_day)?>
<?
if ($user['ank_city'] != NULL){
?>, <?
}
}
if($user['ank_city'] != NULL){
?><?= text($user['ank_city'])?><?
}

?>
</div>
</div>
</div>

<div class="ipanel bl_cont"><div class="service_msg_box"><div class="service_msg service_msg_null" style="text-align: left;">
Страница была заблокирована по жалобам пользователей.<br><br>
<?



$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `id_user` = '$user[id]'"),0); 

$k_page=k_page($k_post,$set['p_str']); 

$page=page($k_page); 

$start=$set['p_str']*$page-$set['p_str']; 

$q=mysql_query("SELECT * FROM `ban` WHERE `id_user` = '$user[id]' ORDER BY `time` DESC LIMIT $start, $set[p_str]"); 

while ($post = mysql_fetch_assoc($q)) 

{ 
echo 'Причина блокировки: '.$pBan[$post['pochemu']].'<br />';
	if ($post['navsegda']==1){		
	echo " Вы заблокированы:  <b>навсегда</b><br />";
	}	
	else {		
	echo "Вы заблокированы: до " . vremja($post['time']) . "<br />";	
	} 

 


if ($post['time'] > $time)echo "<font color=red><b>Активен</b></font><br />\n"; 



} 
?>
</div>
</div></div>
</div>

</div>
<?

if ($k_page>1)str('?',$k_page,$page); // Вывод страниц 


include_once 'sys/inc/tfoot.php'; 

?>