die; } if (check_bitrix_sessid()) { if ($_POST['VI_GET_COUNTRY'] == 'Y') { $arSend['ERROR'] = ''; $result = CVoxImplantPhone::GetPhoneCategories(); if (!empty($result)) { $arSend['RESULT'] = $result; } else { $arSend['ERROR'] = 'ERROR'; } echo CUtil::PhpToJsObject($arSend); } else { if ($_POST['VI_GET_STATE'] == 'Y') { $arSend['ERROR'] = ''; $result = CVoxImplantPhone::GetPhoneCountryStates($_POST['COUNTRY_CODE'], $_POST['COUNTRY_CATEGORY']); if ($result !== false) { $arSend['RESULT'] = $result; } else { $arSend['ERROR'] = 'ERROR'; } echo CUtil::PhpToJsObject($arSend); } else { if ($_POST['VI_GET_REGION'] == 'Y') { $arSend['ERROR'] = ''; $result = CVoxImplantPhone::GetPhoneRegions($_POST['COUNTRY_CODE'], $_POST['COUNTRY_STATE'], $_POST['COUNTRY_CATEGORY']); if ($result !== false) { $arSend['RESULT'] = $result; } else { $arSend['ERROR'] = 'ERROR'; }