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/rospirotorg.ru/bitrix/components/bitrix/landing.userconsent.selector/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/landing.userconsent.selector/ajax.php
<?php
define('STOP_STATISTICS', true);
define('BX_SECURITY_SHOW_MESSAGE', true);
require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');

use \Bitrix\Main\UserConsent\Agreement;
use \Bitrix\Main\UserConsent\Internals\ComponentController;

class LandingUserConsentSelectorAjaxController extends ComponentController
{
	/**
	 * Gets available agreements.
	 * @return void
	 */
	protected function getAgreements()
	{
		$this->responseData['list'] = [];
		$list = Agreement::getActiveList();
		foreach ($list as $id => $name)
		{
			$this->responseData['list'][] =[
				'ID' => $id,
				'NAME' => $name
			];
		}
	}

	/**
	 * Gets available actions of controller.
	 * @return array
	 */
	protected function getActions()
	{
		return array(
			'getAgreements',
		);
	}

	/**
	 * Checks permissions.
	 * @return bool
	 */
	protected function checkPermissions()
	{
		return $GLOBALS['USER']->IsAdmin() ||
			   		(
						IsModuleInstalled('bitrix24') &&
						$GLOBALS['USER']->CanDoOperation('bitrix24_config')
					);
	}
}

$controller = new LandingUserConsentSelectorAjaxController();
$controller->exec();

Youez - 2016 - github.com/yon3zu
LinuXploit