1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
check_mail.php
См. документацию.
1
<?php
2
define(
'NO_KEEP_STATISTIC'
,
'Y'
);
3
define(
'NO_AGENT_STATISTIC'
,
'Y'
);
4
define(
'NO_AGENT_CHECK'
,
true
);
5
define(
'DisableEventsCheck'
,
true
);
6
7
define(
'NOT_CHECK_PERMISSIONS'
,
true
);
8
define(
'BX_SECURITY_SESSION_READONLY'
,
true
);
9
10
require_once(
$_SERVER
[
'DOCUMENT_ROOT'
] .
'/bitrix/modules/main/include/prolog_before.php'
);
11
12
global
$USER
;
13
if
(!is_object(
$USER
) || !
$USER
->IsAuthorized())
14
{
15
return
;
16
}
17
18
$userId
=
$USER
->GetID();
19
20
session_write_close();
21
22
$siteId
=
SITE_ID
;
23
if
(isset(
$_REQUEST
[
'SITE_ID'
]))
24
{
25
$site
= \CSite::getById(
$_REQUEST
[
'SITE_ID'
])->fetch();
26
27
if
(empty(
$site
))
28
{
29
return
;
30
}
31
32
$siteId
=
$site
[
'LID'
];
33
}
34
35
\Bitrix\Main\Loader::includeModule
(
'mail'
);
36
37
$result
=
\Bitrix\Mail\Integration\SyncRequest::syncMail
();
38
39
header(
'Content-Type: application/x-javascript; charset='
.
LANG_CHARSET
);
40
echo json_encode([
41
'unseen'
=>
$result
[
'unseen'
],
42
'hasSuccessSync'
=>
$result
[
'hasSuccessSync'
],
43
'failedToSyncMailboxId'
=>
$result
[
'lastFailedToSyncMailboxId'
],
44
]);
45
46
require
$_SERVER
[
'DOCUMENT_ROOT'
] .
'/bitrix/modules/main/include/epilog_after.php'
;
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Mail\Integration\SyncRequest\syncMail
static syncMail()
Определения
syncrequest.php:38
Bitrix\Main\Loader\includeModule
static includeModule($moduleName)
Определения
loader.php:67
$_REQUEST
$_REQUEST["admin_mnu_menu_id"]
Определения
get_menu.php:8
$result
$result
Определения
get_property_values.php:14
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$USER
global $USER
Определения
csv_new_run.php:40
LANG_CHARSET
const LANG_CHARSET
Определения
include.php:65
$siteId
$siteId
Определения
ajax.php:8
SITE_ID
const SITE_ID
Определения
sonet_set_content_view.php:12
$site
$site
Определения
yandex_run.php:614
bitrix
modules
mail
tools
check_mail.php
Создано системой
1.14.0