if (!CModule::IncludeModule('im')) { return; } CModule::IncludeModule('voximplant'); CModule::IncludeModule('disk'); $arParams["DESKTOP"] = isset($arParams['DESKTOP']) && $arParams['DESKTOP'] == 'Y' ? 'Y' : 'N'; $arResult = array(); // Counters $arResult["COUNTERS"] = CUserCounter::GetValues($USER->GetID(), SITE_ID); CIMContactList::SetOnline(null, $arParams['DESKTOP'] == 'N'); $arSettings = CIMSettings::Get(); $arResult['SETTINGS'] = $arSettings['settings']; if ($arParams['DESKTOP'] == 'Y') { $GLOBALS["APPLICATION"]->SetPageProperty("BodyClass", "im-desktop"); CIMMessenger::SetDesktopStatusOnline(); CIMMessenger::SetDesktopVersion(empty($_GET['BXD_API_VERSION']) ? 0 : $_GET['BXD_API_VERSION']); } else { if ($arParams['FULLSCREEN'] == 'Y') { $GLOBALS["APPLICATION"]->SetPageProperty("BodyClass", "bx-im-fullscreen bx-language-" . LANGUAGE_ID); } } if ($arResult['SETTINGS']['bxdNotify'] && CIMMessenger::CheckInstallDesktop()) { CIMSettings::SetSetting(CIMSettings::SETTINGS, array('bxdNotify' => false)); $arResult['SETTINGS']['bxdNotify'] = false; } $arParams["INIT"] = 'Y'; $arParams["DESKTOP_LINK_OPEN"] = 'N'; // Exchange $arResult["PATH_TO_USER_MAIL"] = ""; $arResult["MAIL_COUNTER"] = 0; if ($arParams["INIT"] == 'Y') {