16 lines
712 B
PHP
16 lines
712 B
PHP
<?php
|
|
ini_set('display_errors', 0 );
|
|
//@mkdir(MYDIR . '/img/tovar', 0700);
|
|
//проверяем авторизацию
|
|
|
|
if ( $_SESSION['dostup'] !=='a' && $_SESSION['dostup'] !== 'e' ) header( 'Location: /403/' );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
27.02.2023
|
|
Получаем не одобренные отзывы
|
|
---------------------------------------------------------------------- */
|
|
|
|
$newotz=\DB::getAll("SELECT * FROM `tovar_otzyv` WHERE `status`=0 LIMIT 100");
|
|
for ($i=0; $i<count($newotz); $i++)$newotz[$i]['fio']=\DB::getValue("SELECT `fio` FROM `users` WHERE `id`=?", $newotz[$i]['user_id']);
|
|
$smarty -> assign( 'newotz', $newotz );
|
|
?>
|