core/api/modules/a_modder_comments/ajax.php

23 lines
606 B
PHP
Raw Normal View History

2023-02-28 21:22:24 +05:00
<?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:
}
?>