core/api/modules/a_modder_comments/index.php

16 lines
712 B
PHP
Raw Normal View History

2023-02-28 21:22:24 +05:00
<?php
ini_set('display_errors', 0 );
//@mkdir(MYDIR . '/img/tovar', 0700);
//проверяем авторизацию
if ( $_SESSION['dostup'] !=='a' && $_SESSION['dostup'] !== 'e' ) header( 'Location: /403/' );
/* ----------------------------------------------------------------------
27.02.2023
Получаем не одобренные отзывы
---------------------------------------------------------------------- */
2023-07-12 20:02:20 +05:00
$newotz=\DB::getAll("SELECT * FROM `tovar_otzyv` WHERE `status`=0 LIMIT 100");
2023-02-28 21:22:24 +05:00
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 );
?>