17 lines
603 B
PHP
17 lines
603 B
PHP
|
<?php
|
||
|
ini_set( 'display_errors', 0 );
|
||
|
if ( $_SESSION['dostup']!='a' ) header( 'Location: /login/' );// && $dostup!='m'
|
||
|
|
||
|
switch( @$_POST['act'] ) {
|
||
|
/* ----------------------------------------------------------------------
|
||
|
26.07.2023
|
||
|
Создаем категорию
|
||
|
---------------------------------------------------------------------- */
|
||
|
case 'createNewCategory':
|
||
|
$_POST['category']=($_POST['category'])?$_POST['category']:0;
|
||
|
\DB::set("INSERT INTO `bib_category` (`txt`, `category`, `status`) VALUES (?,?, 1)", array($_POST['txt'], $_POST['category']));
|
||
|
break;
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|