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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/im.router/templates/.default/template.php
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true)
{
	die();
}

\Bitrix\Main\UI\Extension::load(['im.public', 'translit', 'ui.design-tokens']);
?>
<div class="bx-im-online-page__container bx-im-online-page__scope">
	<div class="bx-im-online-page__logo"></div>
	<div class="bx-im-online-page__title"><?=GetMessage('IM_MESSENGER_EMPTY_PAGE_TITLE')?></div>
	<div class="bx-im-online-page__description"><?=GetMessage('IM_MESSENGER_EMPTY_PAGE_DESCRIPTION')?></div>
	<button class="bx-im-online-page__button"><?=GetMessage('IM_MESSENGER_EMPTY_PAGE_BUTTON_TITLE')?></button>
</div>
<script>
BX.Messenger.Public.disableDesktopRedirect();

const button = document.querySelector('.bx-im-online-page__button');
if (button)
{
	button.addEventListener('click', function() {
		BX.Messenger.Public.openChat();
	});
}

<?if (
	!isset($_GET['IM_SETTINGS'])
	&& !isset($_GET['IM_HISTORY'])
	&& !isset($_GET['IM_NOTIFY'])
	&& !isset($_GET['IM_DIALOG'])
	&& !isset($_GET['IM_LINES'])
	&& !isset($_GET['IM_COPILOT'])
	&& !isset($_GET['IM_COLLAB'])
	&& !isset($_GET['IM_CHANNEL'])
):?>
	BX.addCustomEvent('onImInitBefore', function(im){
		im.fullScreen = true;
	});
	BX.addCustomEvent('onImInit', function(im){
		im.messenger.openMessenger();
	});

	<?if (isset($arResult['MESSENGER_V2']) && $arResult['MESSENGER_V2'] === 'Y'):?>
		BX.Messenger.Public.openChat();
	<?endif;?>
<?endif;?>
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit