1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
options_user_settings_set.php
См. документацию.
1
<?php
8
9
use
Bitrix\Main\Config\Option
;
10
use
Bitrix\Main\Loader
;
11
use
Bitrix\Socialservices\UserTable
;
12
13
$ID
= intval(
$ID
);
14
$socialservices_res
=
true
;
15
16
if
(
17
$ID
> 0
18
&& isset(
$_REQUEST
[
"SS_REMOVE_NETWORK"
])
19
&&
$_REQUEST
[
"SS_REMOVE_NETWORK"
] ==
"Y"
20
&& Option::get(
"socialservices"
,
"bitrix24net_id"
,
""
) !=
""
21
&& Loader::includeModule(
'socialservices'
)
22
&&
check_bitrix_sessid
()
23
)
24
{
25
$dbRes
= UserTable::getList(
array
(
26
'filter'
=>
array
(
27
'=USER_ID'
=>
$ID
,
28
'=EXTERNAL_AUTH_ID'
=>
CSocServBitrix24Net::ID
29
),
30
'select'
=>
array
(
'ID'
)
31
));
32
33
$profileInfo
=
$dbRes
->fetch();
34
if
(
$profileInfo
)
35
{
36
$deleteResult = UserTable::delete(
$profileInfo
[
"ID"
]);
37
$socialservices_res
= $deleteResult->isSuccess();
38
39
if
(
$socialservices_res
)
40
{
41
\Bitrix\Socialservices\Network::clearAdminPopupSession
(
$ID
);
42
}
43
}
44
}
Bitrix\Main\Config\Option
Определения
option.php:15
Bitrix\Main\Loader
Определения
loader.php:13
Bitrix\Main\UserTable
Определения
user.php:48
Bitrix\Socialservices\Network\clearAdminPopupSession
static clearAdminPopupSession($userId)
Определения
network.php:420
CSocServBitrix24Net\ID
const ID
Определения
bitrix24net.php:82
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$_REQUEST
$_REQUEST["admin_mnu_menu_id"]
Определения
get_menu.php:8
$ID
if($ajaxMode) $ID
Определения
get_user.php:27
check_bitrix_sessid
check_bitrix_sessid($varname='sessid')
Определения
tools.php:4686
$profileInfo
$profileInfo
Определения
options_user_settings.php:28
$socialservices_res
$socialservices_res
Определения
options_user_settings_set.php:14
$dbRes
$dbRes
Определения
yandex_detail.php:168
bitrix
modules
socialservices
options_user_settings_set.php
Создано системой
1.14.0