setJsToBody(false); if (!CModule::IncludeModule('im')) return; if (intval($USER->GetID()) <= 0 || \Bitrix\Im\User::getInstance()->isConnector()) { ?> GetID()) ) { LocalRedirect('/desktop_app/limit.php'); return false; } IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/im/install/public/desktop_app/index.php"); if (isset($_GET['IFRAME']) == 'Y') { $APPLICATION->IncludeComponent("bitrix:im.messenger", "iframe", Array( "CONTEXT" => "FULLSCREEN", "DESKTOP" => true, ), false, Array("HIDE_ICONS" => "Y")); } else if (!isset($_GET['BXD_API_VERSION']) && mb_strpos($_SERVER['HTTP_USER_AGENT'], 'BitrixDesktop') === false) { $APPLICATION->IncludeComponent("bitrix:im.messenger", "fullscreen", Array( "CONTEXT" => "FULLSCREEN", "DESIGN" => "DESKTOP", "DESKTOP" => true, ), false, Array("HIDE_ICONS" => "Y")); } else { ?> IncludeComponent("bitrix:im.messenger", "", Array( "CONTEXT" => "DESKTOP", "DESKTOP" => true, ), false, Array("HIDE_ICONS" => "Y")); if (IsModuleInstalled('ui')) { $APPLICATION->IncludeComponent("bitrix:ui.info.helper", "", array()); } $diskEnabled = false; if(IsModuleInstalled('disk')) { $diskEnabled = \Bitrix\Main\Config\Option::get('disk', 'successfully_converted', false) && CModule::includeModule('disk'); if($diskEnabled && \Bitrix\Disk\Configuration::REVISION_API >= 5) { $APPLICATION->IncludeComponent('bitrix:disk.bitrix24disk', '', array('AJAX_PATH' => '/desktop_app/disk.ajax.new.php'), false, Array("HIDE_ICONS" => "Y")); } else { $diskEnabled = false; } } if(!$diskEnabled && IsModuleInstalled('webdav')) { $APPLICATION->IncludeComponent('bitrix:webdav.disk', '', array('AJAX_PATH' => '/desktop_app/disk.ajax.php'), false, Array("HIDE_ICONS" => "Y")); } if (CModule::IncludeModule('timeman')) { \Bitrix\Main\UI\Extension::load('im_timecontrol'); if (class_exists('\Bitrix\Timeman\Monitor\Config')) { \Bitrix\Main\UI\Extension::load('timeman.monitor'); ?>