Файл: vk.com_vhllam/klan/myklan.php
Строк: 192
<?php
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/start.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/compress.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/sess.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/home.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/settings.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/db_connect.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/ipua.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/fnc.php';
require_once$_SERVER['DOCUMENT_ROOT'] . '/sys/inc/user.php';
include_once 'functions.php';
$us = mysql_fetch_array(mysql_query("SELECT * FROM `clan_user` WHERE `id_user` = '$user[id]' AND `activaty` = '0' LIMIT 1"));
$clan = mysql_fetch_array(mysql_query("SELECT * FROM `clan` WHERE `id` = '$us[id_clan]' LIMIT 1"));
$set['title'] = 'Мой клан';
include_once '../sys/inc/thead.php';
title();
aut();
include_once 'functions.php';
if (ban($user['id'], $us['id_clan'])) {
$us = mysql_fetch_array(mysql_query("SELECT * FROM `clan_user` WHERE `id_user` = '".$user['id']."' && `id_clan` = '$clan[id]' AND `activaty` = '0'"));
echo '<div class="mess"><b>Вы забанены в данном клане!</b><br /><b>Причина:</b> ' . $us['ban_prich'] . '<br /><b>Время окончания бана:</b> ' . vremja($us['ban_time']) . '</div>';
echo "<div class='aut'>";
echo "<a href='/klan/'>Все кланы</a><br/>n";
echo "<a href='/klan/rules.php'>Помощь и Правила</a>n";
echo "</div>n";
include_once '../sys/inc/tfoot.php';
exit();
}
$sql = mysql_result(mysql_query("SELECT COUNT(id) FROM `clan_user` where `id_user` = '$user[id]' AND `activaty` = '0' LIMIT 1"),0);
if ($sql == 0){
echo "<div class="mess">n";
echo "Вы не состоите в кланеn";
echo "</div>n";
}
else
{
$count = mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_user` WHERE `id_clan` = '$clan[id]' AND `activaty` = '0'"),0);
$level = ($clan['level']*5)*$count;
echo "<div class="gmenu"><center>n";
if(is_file(H.'files/klanico/'.$clan['id'].'.jpg')){
echo '<img src="/files/klanico/'.$clan['id'].'.jpg" alt=""/>';
}
echo "<strong>$clan[name]</strong></center></div>n";
echo "<div class="gmenu">$clan[about]<br />n";
if(is_file(H.'files/klan/'.$clan['id'].'.jpg')){
echo '<img src="/files/klan/'.$clan['id'].'.jpg" alt=""/><br/>';
}
else
{
echo '<img src="/files/klan/0.png" alt=""/><br/>';
}
$c = mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_user` WHERE `id_clan` = '$clan[id]' AND `activaty` = '1'"),0);
echo "</div>n";
echo "<div class="menu">n";
if ($us['level']==2)
{
echo "-<a href='adminka.php?id=$clan[id]'> Апанель клана</a><br/>n";
echo "-<a href='adm_chat.php'> Админ чат клана</a><br/>n";
if ($c>0)echo "-<a href='adminka.php?id=$clan[id]&act=activate'> Активация участников</a> [$c]<br/>n";
}
if ($us['level']==1){
echo "-<a href='moderka.php?id=$clan[id]'> Модер панель клана</a><br/>n";
echo "-<a href='adm_chat.php'>Админ чат клана</a><br/>n";
if ($c>0)echo "-<a href='moderka.php?id=$clan[id]&act=activate'> Активация участников</a> [$c])<br/>n";
}
echo "</div>n";
echo "<div class="aut">n";
echo "<img src='/FotoKonkurs/img/rating.png' alt=''/> Рейтинг: <strong>$level</strong> %<br />n";
echo "<img src='/style/images/newsi.png' alt=''/> Уровень: <strong>$clan[level]</strong> <a href='/klan/reyt.php'>[Поднять]</a><br />n";
echo "<img src='/style/images/bank.png' alt=''/> В банке: <strong>$clan[bank]</strong> баксов.<br />n";
echo "<img src='/FotoKonkurs/img/time.png' alt=''/> Создан: <strong>".vremja($clan['time'])."</strong><br />n";
echo "</div>n";
echo "<div class="foot">n";
echo "<img src='/style/images/new.png' alt=''/> <a href='/klan/news.php'>Новости клана</a> [".mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_news` WHERE `id_clan` = '$clan[id]'"),0)."]<br/>n";
echo "<img src='/style/images/adm.png' alt=''/> <a href='/klan/adm.php'>Администрация клана</a><br/>n";
echo "<img src='/style/images/pules.png' alt=''/> <a href='/klan/pravila.php'>Правила клана</a><br/>n";
echo "<img src='/style/images/forum1.png' alt='' class='icon'/>n";
echo "<a href='/forum/12/136/'>Форум клана</a>n [";
@require H.'forum/count.php';
echo "]<br/>n";
echo "<img src='/style/images/chat.png'' alt=''/> <a href='/klan/chat.php'>Чат клана</a> [".mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_chat` WHERE `id_clan` = '$clan[id]'"),0)."/+".mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_chat` WHERE `id_clan` = '$clan[id]' AND `time` > '".(time()-86400)."'"),0)."]<br/>n";
echo "<img src='/style/images/sob.png' alt=''/> <a href='/klan/jurnal.php'>События клана</a> [+".mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_jurnal` WHERE `id_clan` = '$clan[id]' AND `time` > '".(time()-86400)."'"),0)."]<br/>n";
echo "<img src='/style/images/xhata.users.png' alt=''/> <a href='/klan/user.php'>Обитатели клана</a> [".mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_user` WHERE `id_clan` = '$clan[id]' AND `activaty` = '0'"),0)."]<br/>n";
if(mysql_result(mysql_query("SELECT COUNT(id) FROM `clan_user` WHERE `id_user` = '$user[id]' LIMIT 1"),0)!=0)echo "<img src='/style/images/exit_klan.png' alt=''/> <a href='/klan/enter.php'>Выйти из клана</a><br/>n";
echo "</div>n";
}
echo "<div class='aut'>";
echo "<a href='/klan/'>Все кланы</a><br/>n";
echo "<a href='/klan/rules.php'>Помощь и Правила</a>n";
echo "</div>n";
include_once '../sys/inc/tfoot.php';
?>