Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/aspro/oneclickbuy.next/ |
Upload File : |
<? if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); if(intval($arParams['CACHE_TIME']) < 0){ $arParams['CACHE_TIME'] = 36000; } if(!strlen($arParams['DEFAULT_CURRENCY'])){ $arParams['DEFAULT_CURRENCY'] = COption::GetOptionString('sale', 'default_currency', 'RUB'); } // get phone auth params list($bPhoneAuthSupported, $bPhoneAuthShow, $bPhoneAuthRequired, $bPhoneAuthUse) = Aspro\Next\PhoneAuth::getOptions(); if($bPhoneAuthSupported && $bPhoneAuthShow){ echo CJSCore::Init('phone_auth', true); if($bPhoneAuthRequired){ if(!in_array('PHONE', $arParams['REQUIRED'])){ $arParams['REQUIRED'][] = 'PHONE'; } } } $arParams['ELEMENT_ID'] = intval($arParams['ELEMENT_ID']); $arResult = array( 'ERRORS' => array(), 'SCRIPT_PATH' => $this->{'__path'}, 'USER_ID' => false, 'USER_FIO' => '', 'USER_EMAIL' => '', 'USER_PHONE' => '', ); global $USER; if($arResult['USER_ID'] = $USER->GetID()){ $dbUser = $USER->GetByID($arResult['USER_ID']); $arUser = $dbUser->Fetch(); $arResult['USER_FIO'] = $USER->GetFullName(); $arResult['USER_EMAIL'] = $USER->GetEmail(); $arResult['USER_PHONE'] = (!empty($arUser['PERSONAL_PHONE']) ? $arUser['PERSONAL_PHONE'] : $arUser['PERSONAL_MOBILE']); } $arParams['INLINE_FORM'] = (isset($_GET['form_id']) && $_GET['form_id'] == 'ocb'); if(\Bitrix\Main\Config\Option::get('aspro.next', 'ONE_CLICK_BUY_CAPTCHA', 'N') == 'Y') { $arParams['CACHE_TYPE'] = 'N'; } if($this->StartResultCache()){ /*get order props*/ CModule::IncludeModule('sale'); $arProps = array(); $rsProps = CSaleOrderProps::GetList( array("SORT" => "ASC"), array( "ACTIVE" => "Y", "CODE" => $arParams["PROPERTIES"], "PERSON_TYPE_ID" => $arParams["DEFAULT_PERSON_TYPE"] ) ); while($arProp = $rsProps->Fetch()) { if($arProp["CODE"] && ($arProp["TYPE"]=="TEXT" || $arProp["TYPE"]=="TEXTAREA" || $arProp["TYPE"]=="FILE")) { $arProps[$arProp["CODE"]]["TYPE"] = $arProp["TYPE"]; $arProps[$arProp["CODE"]]["MULTIPLE"] = $arProp["MULTIPLE"]; $arProps[$arProp["CODE"]]["TITLE"] = $arProp["NAME"]; } } $arResult["PROPS"] = $arProps; $this->SetResultCacheKeys(array( 'SCRIPT_PATH', 'PROPS', )); $this->IncludeComponentTemplate(); } ?>