Beispiel #1
0
				}
			}
		}
	}
	if (!isset($arResult['CONTACT_LIST']['users'][$USER->GetID()]))
	{
		$arUsers = CIMContactList::GetUserData(array(
			'ID' => $USER->GetID(),
			'DEPARTMENT' => 'N',
			'USE_CACHE' => 'Y',
			'SHOW_ONLINE' => 'N'
		));
		$arResult['CONTACT_LIST']['users'][$USER->GetID()] = $arUsers['users'][$USER->GetID()];
	}

	$arResult['OPEN_TAB'] = CIMMessenger::GetOpenTabs();
	$arResult['CURRENT_TAB'] = CIMMessenger::GetCurrentTab();

	$arSettings = CIMMessenger::GetSettings();
	$arResult['STATUS'] = isset($arSettings['status'])? $arSettings['status']: 'online';
	$arResult['VIEW_OFFLINE'] = isset($arSettings['viewOffline']) && $arSettings['viewOffline'] == 'N'? 'false': 'true';
	$arResult['VIEW_GROUP'] = isset($arSettings['viewGroup']) && $arSettings['viewGroup'] == 'N'? 'false': 'true';
	$arResult['ENABLE_SOUND'] = isset($arSettings['enableSound']) && $arSettings['enableSound'] == 'N'? 'false': 'true';
	$arResult['SEND_BY_ENTER'] = isset($arSettings['sendByEnter']) && $arSettings['sendByEnter'] == 'Y'? 'true': 'false';
	$arResult['PANEL_POSTION_HORIZONTAL'] = isset($arSettings['panelPositionHorizontal']) && in_array($arSettings['panelPositionHorizontal'], Array('left', 'center', 'right'))? $arSettings['panelPositionHorizontal']: 'right';
	$arResult['PANEL_POSTION_VERTICAL'] = isset($arSettings['panelPositionVertical']) && in_array($arSettings['panelPositionVertical'], Array('top', 'bottom'))? $arSettings['panelPositionVertical']: 'bottom';
	$arResult['TRY_NATIVE_NOTIFY'] = isset($arSettings['tryNativeNotify']) && $arSettings['tryNativeNotify'] == 'N'? 'false': 'true';

}
else
{