1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
index.php
См. документацию.
1<?php
2
4
5const NO_AGENT_CHECK = true;
6const NO_AGENT_STATISTIC = true;
8const DisableEventsCheck = true;
9
11
12require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
13
14if (!Loader::includeModule('sale'))
15{
16 CHTTP::SetStatus("500 Internal Server Error");
17 die('{"error":"Module \"sale\" not installed"}');
18}
19
20$pattern = "#^\/bitrix\/services\/ymarket\/(([\w\d\-]{2})\/)?([\w\d\-]+)?(\/)?(([\w\d\-]+)(\/)?)?#";
21
23preg_match ($pattern, $_SERVER["REQUEST_URI"], $matches);
24
25$siteId = $matches[2] ?? '';
27$method = $matches[6] ?? '';
28
30
31if ($_SERVER['REQUEST_METHOD'] == 'POST' && count($_POST) <= 0)
32{
33 $postData = file_get_contents("php://input");
34}
35
37 "SITE_ID" => $siteId,
38]);
39
41$APPLICATION->RestartBuffer();
42echo $result;
43
44require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/epilog_after.php");
const BX_ROOT
Определения bx_root.php:3
global $APPLICATION
Определения include.php:80
Определения loader.php:13
static SetStatus($status)
Определения http.php:476
Определения ym_handler.php:21
const NO_AGENT_STATISTIC
Определения get_catalog_menu.php:3
$result
Определения get_property_values.php:14
const DisableEventsCheck
$_SERVER["DOCUMENT_ROOT"]
Определения cron_frame.php:9
const NO_AGENT_CHECK
Определения cron_frame.php:17
const NOT_CHECK_PERMISSIONS
Определения cron_frame.php:15
$siteId
Определения ajax.php:8
die
Определения quickway.php:367
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения waybill.php:936
$method
Определения index.php:27
if(!Loader::includeModule('sale')) $pattern
Определения index.php:20
if($_SERVER $YMHandler['REQUEST_METHOD']=='POST' &&count($_POST)<=0)
Определения index.php:36
$postData
Определения index.php:29
$matches
Определения index.php:22
$requestObject
Определения index.php:26