1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ajax.php
См. документацию.
1
<?php
2
define(
'NOT_CHECK_FILE_PERMISSIONS'
,
true
);
3
define(
'PUBLIC_AJAX_MODE'
,
true
);
4
define(
'NO_KEEP_STATISTIC'
,
'Y'
);
5
define(
'STOP_STATISTICS'
,
true
);
6
define(
'BX_SECURITY_SHOW_MESSAGE'
,
true
);
7
8
$siteId
=
''
;
9
if
(isset(
$_REQUEST
[
'SITE_ID'
]) && is_string(
$_REQUEST
[
'SITE_ID'
]))
10
{
11
$siteId
=
$_REQUEST
[
'SITE_ID'
];
12
}
13
if
(
$siteId
===
''
&& isset(
$_SERVER
[
'HTTP_X_BITRIX_SITE_ID'
]) && is_string(
$_SERVER
[
'HTTP_X_BITRIX_SITE_ID'
]))
14
{
15
$siteId
=
$_SERVER
[
'HTTP_X_BITRIX_SITE_ID'
];
16
}
17
$siteId
= substr(preg_replace(
'/[^a-z0-9_]/i'
,
''
,
$siteId
), 0, 2);
18
if
(!empty(
$siteId
) && is_string(
$siteId
))
19
{
20
define(
'SITE_ID'
,
$siteId
);
21
}
22
if
(isset(
$_REQUEST
[
'admin_section'
]) &&
$_REQUEST
[
'admin_section'
] ===
'Y'
)
23
{
24
define(
'ADMIN_SECTION'
,
true
);
25
}
26
27
$fastDownloadAction
= [
'disk.api.file.showImage'
,
'disk.api.file.download'
,
'disk.api.file.showPreview'
];
28
if
(isset($_GET[
'action'
]) && in_array($_GET[
'action'
],
$fastDownloadAction
,
true
))
29
{
30
require __DIR__ .
'/quickway.php'
;
31
}
32
33
require_once(
$_SERVER
[
'DOCUMENT_ROOT'
].
'/bitrix/modules/main/include/prolog_before.php'
);
34
35
\Bitrix\Main\Application::getInstance
()->run();
Bitrix\Main\Application\getInstance
static getInstance()
Определения
application.php:98
$_REQUEST
$_REQUEST["admin_mnu_menu_id"]
Определения
get_menu.php:8
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$fastDownloadAction
if(!empty( $siteId) &&is_string( $siteId)) if(isset($_REQUEST['admin_section']) && $_REQUEST['admin_section']==='Y') $fastDownloadAction
Определения
ajax.php:27
$siteId
$siteId
Определения
ajax.php:8
bitrix
modules
main
services
ajax.php
Создано системой
1.14.0