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.order.payment.receive/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/sale.order.payment.receive/.parameters.php
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

if(!CModule::IncludeModule("sale"))
	return;

$arPaySys = array("0" => GetMessage("SOPR_CHOOSE_PC"));
$dbPaySystem = \Bitrix\Sale\PaySystem\Manager::getList(array(
	'filter' => array('ACTIVE'=>'Y', 'HAVE_RESULT_RECEIVE'=>'Y'),
	'order' => array('SORT'=>'ASC', 'PSA_NAME'=>'ASC')
));

while ($paySystem = $dbPaySystem->fetch())
	$arPaySys[$paySystem["ID"]] = $paySystem["NAME"];

if (!isset($arCurrentValues["PAY_SYSTEM_ID_NEW"]))
{
	$newId = \CSalePaySystem::getNewIdsFromOld($arCurrentValues["PAY_SYSTEM_ID"], $arCurrentValues['PERSON_TYPE_ID']);
	$currentValue = current($newId);
}
else
{
	$currentValue = $arCurrentValues["PAY_SYSTEM_ID_NEW"];
}

$arComponentParameters = array(
	"PARAMETERS" => array(
		"PAY_SYSTEM_ID_NEW" => array(
			"NAME" => GetMessage("SOPR_PC"),
			"TYPE" => "LIST",
			"MULTIPLE"=>"N",
			"VALUES" => $arPaySys,
			"COLS"=>25,
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "BASE",
			"DEFAULT" => $currentValue
		)
	)
);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit