403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/socialnetwork/lib/integration/mobile/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/socialnetwork/lib/integration/mobile/logentry.php
<?php
/**
* Bitrix Framework
* @package bitrix
* @subpackage socialnetwork
* @copyright 2001-2017 Bitrix
*/
namespace Bitrix\Socialnetwork\Integration\Mobile;

use Bitrix\Socialnetwork\Livefeed\Provider;
use Bitrix\Main\Event;
use Bitrix\Main\EventResult;

class LogEntry
{
	public static function onSetContentView(Event $event)
	{
		$result = new EventResult(
			EventResult::UNDEFINED,
			array(),
			'socialnetwork'
		);

		$logEventFields = $event->getParameter('logEventFields');

		if (!is_array($logEventFields))
		{
			return $result;
		}

		if ($contentId = Provider::getContentId($logEventFields))
		{
			if ($liveFeedEntity = Provider::init(array(
				'ENTITY_TYPE' => $contentId['ENTITY_TYPE'],
				'ENTITY_ID' => $contentId['ENTITY_ID'],
				'LOG_ID' => $logEventFields["ID"]
			)))
			{
				if ($liveFeedEntity->setContentView())
				{
					$result = new EventResult(
						EventResult::SUCCESS,
						array(),
						'socialnetwork'
					);
				}
			}
		}

		return $result;
	}

	public static function onGetContentId(Event $event)
	{
		$result = new EventResult(
			EventResult::UNDEFINED,
			array(),
			'socialnetwork'
		);

		$logEventFields = $event->getParameter('logEventFields');

		if (!is_array($logEventFields))
		{
			return $result;
		}

		if ($contentId = Provider::getContentId($logEventFields))
		{
			$result = new EventResult(
				EventResult::SUCCESS,
				array(
					'contentId' => $contentId
				),
				'socialnetwork'
			);
		}

		return $result;
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit