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/js/russianpost.post/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/russianpost.post/track.php
<?
define("NO_AGENT_CHECK", true);
define("NO_AGENT_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", true);
define("DisableEventsCheck", true);
require_once $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php";
use \Bitrix\Main\Error;
use \Bitrix\Sale\Shipment;
use \Bitrix\Main\Localization\Loc;
use \Bitrix\Main\ArgumentNullException;
use \Bitrix\Sale\Delivery\Services\Manager;
use \Bitrix\Sale\Delivery\CalculationResult;
use \Bitrix\Main\Loader;
use \Bitrix\Sale\Delivery;
use Bitrix\Main\Config\Option;
ini_set("xdebug.overload_var_dump", "off");
if(!Loader::includeModule('sale'))
{
	CHTTP::SetStatus("500 Internal Server Error");
	die('{"error":"Module \"sale\" not installed"}');
}
if(!Loader::includeModule('catalog'))
{
	CHTTP::SetStatus("500 Internal Server Error");
	die('{"error":"Module \"sale\" not installed"}');
}
if(!Loader::includeModule('russianpost.post'))
{
	CHTTP::SetStatus("500 Internal Server Error");
	die('{"error":"Module \"russianpost\" not installed"}');
}

$postData = '';
$debugKey = Option::get('russianpost.post', "RUSSIANPOST_KEY_DEBUG");
if($_SERVER['REQUEST_METHOD'] == 'POST' && count($_POST) <= 0)
{
	$postData = file_get_contents("php://input");
}
$result = \Russianpost\Post\Tools::SaveTrackNumber($postData);
if($debugKey == 'Y')
{
	\Bitrix\Main\Diag\Debug::dumpToFile($postData, "requestTrack", "bitrix/js/russianpost.post/log/log_key.log");
	\Bitrix\Main\Diag\Debug::dumpToFile($result, "answerTrack", "bitrix/js/russianpost.post/log/log_key.log");
}


$APPLICATION->RestartBuffer();
echo $result;
/*$APPLICATION->RestartBuffer();
echo '$orderId-'.$orderId;
echo '$action-'.$action;
echo '$postData-'.$postData;*/
require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/epilog_after.php");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit