Файл: vk.com_vhllam/klan/klan.php
Строк: 120
<?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';
$id = intval($_GET['id']);
$clan = mysql_fetch_array(mysql_query("SELECT * FROM `clan` WHERE `id` = '".$id."' LIMIT 1"));
$set['title'] = 'Клан '.$clan['name'];
include_once '../sys/inc/thead.php';
title();
aut();
include_once 'functions.php';
if (ban($user['id'], $id)) {
$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();
}
$us = mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_user` WHERE `id_clan` = '$clan[id]' AND `activaty` = '0'"),0);
$level = ''.(5*$us)*$clan['level'].'';
if ($user['group_access'] == 15) {
echo '<div class="gmenu">';
echo '<b><a href="adm_display.php?id='.$id.'">[Войти как администратор]</a></b>';
echo '</div>';
}
echo "<div class="aut"><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=""/>';
}
else
{
echo '<img src="/files/klan/0.png" alt=""/>';
}
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/xhata.users.png' alt=''/> Состав: <strong>$us</strong> человек.<br />n";
echo "<img src='/FotoKonkurs/img/time.png' alt=''/> Дата создания: <strong>".vremja($clan['time'])."</strong><br />n";
echo "</div>n";
echo "<div class="menu">n";
echo "<img src='/style/images/adm.png' alt=''/> <a href='adm.php?id=$clan[id]'>Администрация клана</a><br/>n";
echo "<img src='/style/images/pules.png' alt=''/> <a href='pravila.php?id=$clan[id]'>Правила клана</a><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/chat.png' alt=''/> <a href='/klan/enter.php?id=$clan[id]'>Вступить в клан</a><br/>n";
echo "</div>n";
echo "<div class='aut'>";
echo "<a href='/klan/myklan.php'>Мой клан</a><br/>n";
echo "<a href='/klan/'>Все кланы</a><br/>n";
echo "<a href='/klan/rules.php'>Помощь и Правила</a>n";
echo "</div>n";
include_once '../sys/inc/tfoot.php';
?>