22 lines
900 B
PHP
22 lines
900 B
PHP
|
<?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 );
|
||
|
?>
|