Файл: upload/pages/help/privacy.php
Строк: 31
<?php
require_once ($_SERVER['DOCUMENT_ROOT'] . '/core/core.php');
$details = FetchAssoc(dbquery("SELECT * FROM `operator_details` WHERE `id` = 1"));
$site_inf = FetchAssoc(dbquery("SELECT * FROM `site_info` WHERE `id` = '1'"));
$breadcrumbs = generateBreadcrumbs([
['/', 'Главная'],
['#', 'Политика конфиденциальности']
]);
// Определяем данные оператора
if ($details['operator_type'] == 0) {
$operator_name = 'ИП ' . chars($details['ip_fullname']);
$operator_inn = chars($details['ip_inn']);
$operator_reg = 'ОГРНИП: ' . chars($details['ip_ogrnip']);
} else {
$operator_name = 'ООО «' . chars($details['ooo_name']) . '»';
$operator_inn = chars($details['ooo_inn']);
$operator_reg = 'ОГРН: ' . chars($details['ooo_ogrn']);
}
$page_html = $view->render('pages/help/privacy.html', [
'breadcrumbs_html' => $breadcrumbs['html'],
'breadcrumbs_json' => $breadcrumbs['json_ld'],
'site_title' => chars($site_inf['name']),
'operator_type' => $details['operator_type'],
'operator_name' => $operator_name,
'operator_inn' => $operator_inn,
'operator_reg' => $operator_reg,
'operator_email' => $details['operator_email'],
'details' => $details,
]);
require_once ($_SERVER['DOCUMENT_ROOT'] . '/layout.php');
?>