Файл: public_html/klan/adm_panel/admyes.php
Строк: 51
<?
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']==2){
echo "<div class='p_t'><center><img src='/klan/img/01.png'/></center></div>";
$clan = mysql_fetch_array(mysql_query("SELECT * FROM `clan` WHERE `id` = '$id' LIMIT 1"));
$us = intval($_GET['user']);
mysql_query("UPDATE `clan_user` SET `level` = '2' WHERE `id` = '$us' LIMIT 1");
msg ('Права админа выданы');
}
include '../inc/foot.php';
include_once '../../sys/inc/tfoot.php';
?>