uawdijnntqw1x1x1
IP : 18.218.54.80
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
ekb.axolotls.ru
/
ajax
/
city_select.php
/
/
<?define("STATISTIC_SKIP_ACTIVITY_CHECK", "true");?> <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?> <?if(isset($_GET['term']) && $_GET['term']) { if(\Bitrix\Main\Loader::includeModule('aspro.next')) { $arRegions = CNextRegionality::getRegions(); if($arRegions) { $city = iconv('UTF-8', LANG_CHARSET, $_GET['term']); $arRegionsJS = array(); $bFuncExists = (function_exists('mb_strtolower')); $arSortFields=array("NAME" => SORT_ASC); \Bitrix\Main\Type\Collection::sortByColumn($arRegions, $arSortFields); $type_regions = \Bitrix\Main\Config\Option::get('aspro.next', 'REGIONALITY_TYPE', 'ONE_DOMAIN'); $host = (CMain::IsHTTPS() ? 'https://' : 'http://'); $uri = $_GET['url']; foreach($arRegions as $arTmpRegion) { if($bFuncExists) { $cityNameTmp = mb_strtolower($arTmpRegion['NAME']); $city = mb_strtolower($city); } else { $cityNameTmp = strtolower($arTmpRegion['NAME']); $city = strtolower($city); } if(strpos($cityNameTmp, $city) !== false) { $cityName = iconv(LANG_CHARSET, 'UTF-8', $arTmpRegion['NAME']); $href = $uri; if($arTmpRegion['PROPERTY_MAIN_DOMAIN_VALUE'] && $type_regions == 'SUBDOMAIN') $href = $host.$arTmpRegion['PROPERTY_MAIN_DOMAIN_VALUE'].$uri; $arRegionsJS[] = array( 'label' => $cityName, 'HREF' => $href, 'ID' => $arTmpRegion['ID'], ); } } if($arRegionsJS) echo json_encode($arRegionsJS); else echo json_encode(array()); } else echo json_encode(array()); } else echo json_encode(array()); } ?>
/var/www/axolotl/data/www/ekb.axolotls.ru/ajax/city_select.php