Вход Регистрация
Файл: api_forum/razdel_create.php
Строк: 35
<?

////////////////////////////////////////
///// Kyber ApiCMS 2013 apicms.ru //////
///// Запрещается продажа данной CMS ///
///// Автор Евгений Медянкин Kyber /////
///// ICQ 626-000-895 или 37-22-47 /////
////////////////////////////////////////

////////////////////////////////////////
$title 'Форум - Создание раздела';
require_once 
'../api_core/apicms_system.php';
require_once 
'../design/styles/'.htmlspecialchars($api_design).'/head.php';
////////////////////////////////////////
if ($user['level']==or $user['level']==2){
if (isset(
$_POST['save'])){
$my_razdel apicms_filter($_POST['razdel']);
$my_forum_opis apicms_filter($_POST['forum_opis']);
if (isset(
$_POST['razdel']) && strlen($my_forum_opis)>10){
mysql_query("INSERT INTO `api_forum_razdel` (name, opisanie, id_user, time) values ('".apicms_filter($my_razdel)."', '".apicms_filter($my_forum_opis)."', '$user[id]', '$time')");
}
///////////////////////////////////
echo '<div class="apicms_content"><center>Раздел успешно создан</center></div>';
header("Location: index.php");
}
////////////////////////////////////////
echo "<form method='post' action='?ok'>n";
echo 
"<div class='apicms_subhead'><center>Название раздела: </br> <input type='text' name='razdel' value=''  /><br /> <textarea name='forum_opis'></textarea></center></div>n";
echo 
"<div class='apicms_subhead'><center><input type='submit' name='save' value='Создать раздел' /></center></div>n";
}else{
echo 
"<div class='apicms_content'><center>Недостаточно прав для входа!</center></div>n";
}
////////////////////////////////////////
require_once '../design/styles/'.htmlspecialchars($api_design).'/footer.php';
?>
Онлайн: 1
Реклама