uawdijnntqw1x1x1
IP : 3.140.195.167
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
/
axolotl.ru
/
www
/
bitrix
/
css
/
..
/
js
/
russianpost.post
/
ajax_crm_map.php
/
/
<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); use \Bitrix\Main\Loader; $module_id = "russianpost.post"; use Bitrix\Main\Config\Option; Loader::includeModule('sale'); Loader::includeModule($module_id); $GLOBALS['APPLICATION']->AddHeadScript("https://widget.pochta.ru/map/widget/widget.js"); $guid_id = Option::get('russianpost.post', "GUID_ID"); //0000073738 //0000445112 $res = \Bitrix\Sale\Location\LocationTable::getList(array( 'filter' => array( 'CODE' => array($_REQUEST['location']), //'CODE' => array('0000073738'), ), 'select' => array( 'EXTERNAL.*', 'EXTERNAL.SERVICE.CODE' ) )); $arZip = array(); while($item = $res->fetch()) { if($item['SALE_LOCATION_LOCATION_EXTERNAL_SERVICE_CODE'] == 'ZIP_LOWER' || $item['SALE_LOCATION_LOCATION_EXTERNAL_SERVICE_CODE'] == 'ZIP') { $threeDigits = substr($item['SALE_LOCATION_LOCATION_EXTERNAL_XML_ID'], 0, 3); $arZip[$threeDigits] = "'".$threeDigits."'"; } } $strZip = implode(", ", $arZip); $resS = \Bitrix\Sale\Location\LocationTable::getList(array( 'filter' => array( '=CODE' => $_REQUEST['location'], '=PARENTS.NAME.LANGUAGE_ID' => LANGUAGE_ID, '=PARENTS.TYPE.NAME.LANGUAGE_ID' => LANGUAGE_ID, ), 'select' => array( 'I_ID' => 'PARENTS.ID', 'I_NAME_RU' => 'PARENTS.NAME.NAME', 'I_TYPE_CODE' => 'PARENTS.TYPE.CODE', 'I_TYPE_NAME_RU' => 'PARENTS.TYPE.NAME.NAME', 'I_CODE' => 'PARENTS.CODE', ), 'order' => array( 'PARENTS.DEPTH_LEVEL' => 'asc' ) )); $locationFullName = ''; while($itemC = $resS->fetch()) { if($itemC['I_TYPE_CODE'] != 'COUNTRY_DISTRICT') { $locationFullName .= $itemC['I_NAME_RU'].' '; } } $locationFullName = trim($locationFullName); ?> <script src="https://widget.pochta.ru/map/widget/widget.js"> </script> <script> ecomStartWidget({ accountId: '<?=$guid_id?>', accountType: 'bitrix_cms', weight: <?=$_REQUEST['weight'];?>, sumoc: <?=$_REQUEST['price'];?>, startZip: [<?=$strZip;?>], //startZip: ['344'], callbackFunction: callbackCrmFunction, containerId: 'ecom-widget', start_location: '<?=$locationFullName;?>' }); </script>
/var/www/axolotl/data/www/axolotl.ru/www/bitrix/css/../js/russianpost.post/ajax_crm_map.php