Файл: public_html/klan/adm_panel/priz.php
Строк: 69
<?
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>";
if (isset($_POST['pr']))
{
$pr=intval($_POST['pr']);
mysql_query("UPDATE `clan` SET `priz` = '$pr' WHERE `id` = '$id' LIMIT 1");
msg('Изменено');
}
$clan = mysql_fetch_array(mysql_query("SELECT * FROM `clan` WHERE `id` = '$id' LIMIT 1"));
echo "<div class='p_m'>n";
echo "<form method="post" action="?id=$id&act=priz">n";
echo "Приз за поднятие клана:<br />n";
echo "<input type="text" name="pr" value="$clan[priz]"/><br />n";
echo "<input value="Готово" type="submit" />n";
echo "</form>n";
echo "</div>n";
echo "<img src='/klan/img/nazad.png'/> | <a href='index.php?id=$id'>Админка </a><br/>n";
echo "</div>n";
}
include '../inc/foot.php';
include_once '../../sys/inc/tfoot.php';
?>