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/components/bitrix/bizproc.workflow.livefeed/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/components/bitrix/bizproc.workflow.livefeed/component.php
<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true) die();

if (!CModule::IncludeModule('bizproc'))
	return false;

if (!$GLOBALS['USER']->IsAuthorized())
	return false;

$arParams['WORKFLOW_ID'] = (empty($arParams['WORKFLOW_ID']) ? $_REQUEST['WORKFLOW_ID'] : $arParams['WORKFLOW_ID']);

if (!$arParams['WORKFLOW_ID'])
	return false;
$arResult['TASKS'] = CBPViewHelper::getWorkflowTasks($arParams['WORKFLOW_ID'], true, true);
$arResult['WORKFLOW_STATE_INFO'] = CBPStateService::getWorkflowStateInfo($arParams['WORKFLOW_ID']);
$arResult['USER_ID'] = (int)$GLOBALS['USER']->GetId();

if (empty($arResult['WORKFLOW_STATE_INFO']))
{
	return false;
}

if (!empty($arResult['TASKS']['RUNNING']))
{
	foreach ($arResult['TASKS']['RUNNING'] as &$t)
	{
		if ($t['IS_INLINE'] == 'Y')
		{
			$controls = CBPDocument::getTaskControls($t);
			$t['BUTTONS'] = $controls['BUTTONS'];
		}
		if (isset($t['PARAMETERS']['AccessControl']) && $t['PARAMETERS']['AccessControl'] == 'Y')
		{
			$t['DESCRIPTION'] = '';
		}
	}
}
$arResult['noWrap'] = isset($arParams['NOWRAP']) && $arParams['NOWRAP'] == 'Y';

if (
	isset($arParams['SITE_TEMPLATE_ID'])
	&& $arParams['SITE_TEMPLATE_ID'] <> ''
)
{
	$this->setSiteTemplateId($arParams['SITE_TEMPLATE_ID']);
}

ob_start();
$this->IncludeComponentTemplate();
$message = ob_get_contents();
ob_end_clean();

return array(
	'MESSAGE' => $arResult['noWrap']? $message : htmlspecialcharsEx($message),
	'CACHED_JS_PATH' => '/bitrix/js/bizproc/tools.js',
	"CACHED_CSS_PATH" => array(
		$this->getTemplate()->GetFolder()."/style.css",
		// @TODO: for presentation only, fix
		'/bitrix/components/bitrix/bizproc.workflow.faces/templates/.default/style.css'
	)
);

Youez - 2016 - github.com/yon3zu
LinuXploit