Файл: public_html/klan/adm_panel/about.php
Строк: 70
<?
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['msg']))
{
$msg=esc($_POST['msg']);
if (strlen2($msg)>1024){$err='Описание слишком большое';}
if (strlen2($msg)<2){$err='Описание слишком короткие';}
$msg=mysql_real_escape_string($msg);
if (!isset($err)){
mysql_query("UPDATE `clan` SET `about` = '".$msg."' 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=about">n";
echo "Текст правил:<br />n<textarea name="msg" >$clan[about]</textarea><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';
?>