{ foreach ($_POST['FM'] as $userId => $data) foreach ($data as $key => $value) $_SESSION['IM_FLASHED_MESSAGE'][$key] = $key; } } $bOpenMessenger = isset($_POST['OPEN_MESSENGER']) && intval($_POST['OPEN_MESSENGER']) == 1? true: false; // Online $arOnline = CIMStatus::GetList(); // Counters $arResult["COUNTERS"] = CUserCounter::GetValues($USER->GetID(), $_POST['SITE_ID']); if (CIMMail::IsExternalMailAvailable()) { $arResult["MAIL_COUNTER"] = intval($arResult["COUNTERS"]["mail_unseen"]); } else if (CModule::IncludeModule("dav")) { // Exchange $ar = CDavExchangeMail::GetTicker($GLOBALS["USER"]); if ($ar !== null) $arResult["MAIL_COUNTER"] = intval($ar["numberOfUnreadMessages"]); } $arSend = Array( 'REVISION' => $arResult["REVISION"], 'MOBILE_REVISION' => $arResult["MOBILE_REVISION"], 'DISK_REVISION' => $arResult["DISK_REVISION"],