Файл: test.zfarm.mobi/mystyleuser/linkban.php
Строк: 37
<?php
/////////////////////////
/*
Author MyStyle ZomBi.Biz
Год 2013 Права предоставлены автору Шехову Виталию Александровичу
http://vk.com/online_user
*/
/////////////////////////
echo '<div class="event"><h1>';
echo users($post['id']);
echo ' / Список нарушений</h1>
</div>
<div class="content">
<div class="btn">
<ul>';
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_ban` WHERE `id_user` = '$post[id]'"),0);
if ($k_post==0)
{
echo 'Нет нарушений';
}
if(isset($_GET['delete']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_ban` WHERE `id` = '".intval($_GET['delete'])."' AND `id_user` = '$userq[id]'"),0)!=0 && $user['admin']==1)
{
mysql_query("DELETE FROM `mystyle_ban` WHERE `id_user` = '$post[id]' AND `id` = '".intval($_GET['delete'])."'");
}
$num=0;
$q=mysql_query("SELECT * FROM `mystyle_ban` WHERE `id_user` = '$post[id]'");
while($post=mysql_fetch_array($q))
{
$num++;
$us_ban=mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_user` WHERE `id` = '$post[id_who]'"));
echo "<li><span class='minor'><span>$num</span>.</span><span> <span>".($post['izg']==1?'Пожизненный бан':"Временный бан ".vremja($post['time']))."</span>, выдал".($us_ban['pol']==0?'':null)." <span>";
echo "".users($us_ban['id'])."</a></span><span>, (".$post['msg'].")</span>".($user['admin']==1?" <a href='?profile=$userq[id]&bans&delete=$post[id]'>[удалить]</a>":null)."</li>";
}
echo '</ul></div>';
include 'styledb/mystylefoot.php';
exit;
?>