core/api/modules/reg/index.php

22 lines
900 B
PHP
Raw Normal View History

2022-12-11 13:55:49 +05:00
<?php
$mod = new main(BD_NAME, BD_TYPE, BD_HOST, BD_USER, BD_PWD, MOD);
if ( $_POST['act'] == 'login' ) $mod -> login ( $_POST );
if ( $_POST['act'] == 'reg' ) $mod -> reg ( $_POST );
/* ----------------------------------------------------------------------
20.10.2022
Получаем список регионов
---------------------------------------------------------------------- */
unset($a);
$a['strana_id']=$settings['strana'];
$region=$db->get_massiv('region', $a, 'txt');
$smarty -> assign( 'region', $region );
/* ----------------------------------------------------------------------
20.10.2022
Получаем список городов
---------------------------------------------------------------------- */
unset($a);
$a['strana_id']=$settings['strana'];
$city=$db->get_massiv('city', $a, 'txt');
$smarty -> assign( 'city', $city );
?>