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/cvetdv.ru/bitrix/components/bitrix/iblock.tv/ |
Upload File : |
<?php const PUBLIC_AJAX_MODE = true; require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); if( isset($_SESSION["player_files"]) && is_array($_SESSION["player_files"]) && isset($_REQUEST["id"]) && isset($_SESSION["player_files"][$_REQUEST["id"]]) ) { $arFile = $_SESSION["player_files"][$_REQUEST["id"]]; if( $arFile["STAT_EVENT"] && !$arFile["WAS_STAT_EVENT"] //not yet for this session && $arFile["STAT_EVENT1"] <> '' //event1 defined && CModule::IncludeModule('statistic') ) { CStatEvent::AddCurrent($arFile["STAT_EVENT1"], $arFile["STAT_EVENT2"], $arFile["STAT_EVENT3"]); $_SESSION["player_files"][$_REQUEST["id"]]["WAS_STAT_EVENT"] = true; } if( $arFile["SHOW_COUNTER_EVENT"] && !$arFile["WAS_SHOW_COUNTER_EVENT"] //not yet for this session && CModule::IncludeModule('iblock') ) { CIBlockElement::CounterInc($_REQUEST["id"]); $_SESSION["player_files"][$_REQUEST["id"]]["WAS_SHOW_COUNTER_EVENT"] = true; } } CMain::FinalActions();