23 lines
606 B
PHP
23 lines
606 B
PHP
|
<?php
|
||
|
|
||
|
//проверяем кто мы
|
||
|
$access = 0;
|
||
|
if ( $_SESSION['dostup'] =='a' ) $access=1;
|
||
|
if ( $_SESSION['dostup'] =='u' ) $access=1;
|
||
|
if ( $access==0 ) die( "Нет прав" );
|
||
|
|
||
|
switch( @$_POST['act'] ) {
|
||
|
|
||
|
/* ----------------------------------------------------------------------
|
||
|
28.02.2023
|
||
|
Модерируем отзыв
|
||
|
---------------------------------------------------------------------- */
|
||
|
case 'modeComment':
|
||
|
\DB::set("UPDATE `tovar_otzyv` SET `status`=? WHERE `id`=? LIMIT 1", array($_POST['tip'], $_POST['id']));
|
||
|
break;
|
||
|
|
||
|
|
||
|
default:
|
||
|
|
||
|
}
|
||
|
?>
|