AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.144.235.148
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/components/bitrix/socialnetwork.contentview.count/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/bitrix/components/bitrix/socialnetwork.contentview.count/component.php
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var CBitrixComponent $this */
/** @var array $arParams */
/** @var array $arResult */
/** @var string $componentPath */
/** @var string $componentName */
/** @var string $componentTemplate */
/** @global CDatabase $DB */
/** @global CUser $USER */
/** @global CMain $APPLICATION */

$arResult['AVAILABLE'] = \Bitrix\Socialnetwork\Item\UserContentView::getAvailability();

if ($arResult['AVAILABLE'])
{
	CJSCore::Init(array('popup', 'ajax', 'content_view'));
}

if (!empty($arParams['CONTENT_ID']))
{
	$APPLICATION->SetAdditionalCSS("/bitrix/components/bitrix/rating.vote/templates/like/popup.css");

	$arResult['CONTENT_ID'] = $arParams['CONTENT_ID'];
	$arResult['CONTENT_VIEW_CNT'] = (isset($arParams["CONTENT_VIEW_CNT"]) ? intval($arParams["CONTENT_VIEW_CNT"]) : 0);
	$arResult['IS_SET'] = (isset($arParams["IS_SET"]) && $arParams["IS_SET"] == 'Y' ? 'Y' : 'N');

	if (!empty($arParams['PATH_TO_USER_PROFILE']))
	{
		$arResult['PATH_TO_USER_PROFILE'] = $arParams['PATH_TO_USER_PROFILE'];
	}
	else
	{
		$userPage = \Bitrix\Main\Config\Option::get('socialnetwork', 'user_page', SITE_DIR.'company/personal/');
		$arResult['PATH_TO_USER_PROFILE'] = $userPage.'user/#USER_ID#/';
	}

	if (
		$USER->isAuthorized()
		&& \Bitrix\Main\Loader::includeModule('pull')
		&& \CPullOptions::getNginxStatus()
	)
	{
		\CPullWatch::Add($USER->getId(), 'CONTENTVIEW'.$arParams['CONTENT_ID']);
	}

	$this->IncludeComponentTemplate();
}

?>

Anon7 - 2022
AnonSec Team