2022-12-11 13:55:49 +05:00
|
|
|
|
<?php
|
2022-12-24 21:12:23 +05:00
|
|
|
|
ini_set( 'display_errors', 0 );
|
|
|
|
|
|
|
|
|
|
if ( !$_SESSION['user_id'] ) header ( 'Location: /login/' );
|
2022-12-11 13:55:49 +05:00
|
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
|
15.10.2022
|
|
|
|
|
Получаем список регионов
|
|
|
|
|
---------------------------------------------------------------------- */
|
|
|
|
|
$strana_id = \core::getSettings('strana');
|
|
|
|
|
$region = \DB::getAll('SELECT * FROM `region` WHERE `strana_id` = ' . $strana_id);
|
|
|
|
|
$smarty -> assign( 'region', $region );
|
|
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
|
15.10.2022
|
|
|
|
|
Получаем список городов
|
|
|
|
|
---------------------------------------------------------------------- */
|
|
|
|
|
$city = \DB::getAll('SELECT * FROM `city` WHERE `strana_id` = ' . $strana_id);
|
|
|
|
|
$smarty -> assign( 'city', $city );
|
|
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
|
14.10.2022
|
|
|
|
|
Меню личного кабинета
|
|
|
|
|
---------------------------------------------------------------------- */
|
|
|
|
|
$smarty -> assign ( 'mnulk', 'skin/inc/mnulk.html');
|
|
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
|
02.06.2022
|
|
|
|
|
Получаем информацию о пользователе
|
|
|
|
|
---------------------------------------------------------------------- */
|
|
|
|
|
$user_info = \DB::getAll('SELECT * FROM `users` WHERE `id` = ' . $_SESSION['user_id'] . ' LIMIT 1');
|
|
|
|
|
$smarty -> assign( 'user_info', $user_info );
|
|
|
|
|
$userOption = \DB::getAll('SELECT * FROM `userOption` WHERE `user_id` = ' . $_SESSION['user_id'] . ' LIMIT 1');
|
|
|
|
|
$smarty -> assign( 'userOption', $userOption );
|
|
|
|
|
?>
|