Вход Регистрация
Файл: users/forum/edit_razdel_ok.php
Строк: 38
<?
if (isset($_POST['new_thems']) && $_POST['new_thems']=='admods' && $forum['new_thems']=='all')$new_thems='admods';
elseif (
$forum['new_thems']=='admods' && (!isset($_POST['new_thems']) || $_POST['new_thems']=='all'))$new_thems='all';
else 
$new_thems=$forum['new_thems'];

$name=$_POST['name'];
$name=esc(stripcslashes(htmlspecialchars($_POST['name'])));
if (isset(
$_POST['translit_name']) && $_POST['translit_name']==1)$name=translit($name);
if(
strlen2($name)<1)
{
$err[]="Введите название";
}
if(
strlen2($name)>60)
{
$err[]="Название слишком длинное";
}
$name=my_esc($name);
$text=$_POST['text'];
$text=esc(stripcslashes(htmlspecialchars($_POST['text'])));
if (isset(
$_POST['translit_text']) && $_POST['translit_text']==1)$text=translit($text);
if(
strlen2($text)>100)
{
$err[]="Описание слишком длинное";
}
$text=my_esc($text);
$up=$_POST['up'];
$up=my_esc($up);
if(!isset(
$err))
{
if(
$up==|| $up==|| $up==|| $up==|| $up==|| $up==|| $up==|| $up==|| $up==|| $up==|| $up==10)
{
mysql_query("UPDATE `forum` SET `name` = '$name', `new_thems` = '$new_thems', `text` = '$text' , `up` = '$up' WHERE `id` = '$forum[id]' LIMIT 1");
header("Location:/users/forum/?id=$forum[mother]");
}
else echo 
"<div class='err'>Уровень от 1 до 10!</div>n";
}
err();
?>
Онлайн: 2
Реклама