Файл: public_html/klan/klan.php
Строк: 116
<?
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';
include_once '../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();
echo "<div class='p_t'><center><img src='img/01.png'/></center></div>";
$us = mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_user` WHERE `id_clan` = '$clan[id]' AND `activaty` = '0'"),0);
$level = ''.(5*$us)*$clan['level'].'';
echo "<div class="p_m"><center>n";
if(is_file(H.'sys/klan/klanico/'.$clan['id'].'.jpg')){
echo '<img src="/sys/klan/klanico/'.$clan['id'].'.jpg" alt=""/>';
}else{
echo "<img src='img/icon.png'/>";
}
echo "<b><strong>$clan[name]</b></strong></center></div>n";
echo "<div class='p_s'>$clan[about]</div><div class='p_m'>n";
if(is_file(H.'sys/klan/klan/'.$clan['id'].'.jpg')){
echo '<img src="/sys/klan/klan/'.$clan['id'].'.jpg" alt=""/>';
}
else
{
echo '<img src="img/logo0.png" alt=""/>';
}
echo "</div>n";
echo "<div class='menu_razd'><center><img src='img/02.png'/></center></div><div class='p_s'>n";
echo "<img src='img/priz.png'/> | Рейтинг: <strong>$level</strong> %<hr/>n";
echo "<img src='img/logo.png'/> | Состав: <strong>$us</strong> человек.<hr />n";
echo "<img src='img/icon.png'/> | Дата создания: <strong>".vremja($clan['time'])."</strong><hr/>n";
echo "</div><div class='menu_razd'><center><img src='img/02.png'/></center></div>n";
echo "<div class='p_m'>n";
echo "<img src='img/set.png'/> | <a href='adm.php?id=$clan[id]'>Администрация клана</a><hr/>n";
echo "<img src='img/rules.png'/> | <a href='pravila.php?id=$clan[id]'>Правила клана</a><hr/>n";
if(mysql_result(mysql_query("SELECT COUNT(id) FROM `clan_user` WHERE `id_user` = '$user[id]' LIMIT 1"),0)==0)echo "<img src='img/ok.png'/> | <a href='/klan/enter.php?id=$clan[id]'>Вступить в клан</a><hr/>n";
echo "</div>n";
include 'inc/foot.php';
include_once '../sys/inc/tfoot.php';
?>