$arFormat = Array( "today" => "today, ".GetMessage('IM_MESSAGE_FORMAT_TIME'), "" => GetMessage('IM_MESSAGE_FORMAT_DATE') ); $arResult['SEND_DATE_FORMAT'] = FormatDate($arFormat, time()+$userTzOffset); } echo CUtil::PhpToJsObject($arResult); CIMContactList::SetOnline(); CIMMessenger::SetCurrentTab($_POST['TAB']); } else if ($_POST['IM_EDIT_MESSAGE'] == 'Y') { CUtil::decodeURIComponent($_POST); if(!CIMMessenger::Update($_POST['ID'], $_POST['MESSAGE'])) { $arResult = Array( 'ERROR' => 'CANT_EDIT_MESSAGE' ); } else { $CCTP = new CTextParser(); $CCTP->MaxStringLen = 200; $CCTP->allow = array("HTML" => "N", "ANCHOR" => "Y", "BIU" => "Y", "IMG" => "N", "QUOTE" => "N", "CODE" => "N", "FONT" => "N", "LIST" => "N", "SMILES" => "Y", "NL2BR" => "Y", "VIDEO" => "N", "TABLE" => "N", "CUT_ANCHOR" => "N", "ALIGN" => "N"); $userTzOffset = isset($_POST['USER_TZ_OFFSET'])? intval($_POST['USER_TZ_OFFSET']): CTimeZone::GetOffset(); $arResult = Array( 'ID' => $insertID,