Файл: public_html/klan/adm_panel/index.php
Строк: 79
<?
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';
$set['title'] = 'Админка';
include_once '../../sys/inc/thead.php';
title();
aut();
$id = intval($_GET['id']);
$us = mysql_fetch_array(mysql_query("SELECT * FROM `clan_user` WHERE `id_user` = '$user[id]' AND `id_clan` = '$id' LIMIT 1"));
if($us['level']>=1){
echo "<div class='p_t'><center><img src='/klan/img/01.png'/></center></div>";
if($us['level']>=1)echo "<div class='p_m'><img src='/klan/img/news.png'/> | <a href='news.php?id=$id'> Новости </a></div><hr/>";
if($us['level']>=2)echo "<div class='p_m'><img src='/klan/img/logo.png'/> | <a href='logo.php?id=$id'> Логотип </a></div><hr/>";
if($us['level']>=2)echo "<div class='p_m'><img src='/klan/img/icon.png'/> | <a href='icon.php?id=$id'> Иконка </a></div><hr/>";
if($us['level']>=1)echo "<div class='p_m'><img src='/klan/img/rules.png'/> | <a href='rules.php?id=$id'> Правила </a></div><hr/>";
if($us['level']>=2)echo "<div class='p_m'><img src='/klan/img/about.png'/> | <a href='about.php?id=$id'> Описание </a></div><hr/>";
if($us['level']>=2)echo "<div class='p_m'><img src='/klan/img/bank.png'/> | <a href='bank.php?id=$id'> Раздать банк </a></div><hr/>";
if($user['go_bank']<time())
{
if($us['level']>=2)echo "<div class='p_m'><img src='/klan/img/go_bank.png' /> | <a href='go_bank.php?'> Дивиденды</a></div><hr/>n";
}
if($us['level']>=2)echo "<div class='p_m'><img src='/klan/img/priz.png'/> | <a href='priz.php?id=$id'> Приз за поднятие </a></div><hr/>";
if($us['level']>=1)echo "<div class='p_m'><img src='/klan/img/ok.png'/> | <a href='activate.php?id=$id'> Активация </a></div><hr/>";
if($us['level']>=2)echo "<div class='p_m'><img src='/klan/img/set.png'/> | <a href='set.php?id=$id'> Настройка </a></div></div></b>";
}else{
echo "<div class='err'><center>Ты не админ этого клана</center></div>";
}
include '../inc/foot.php';
include_once '../../sys/inc/tfoot.php';
?>