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/cvetdv.ru/bitrix/components/bitrix/sale.mobile.orders.push/ |
Upload File : |
<? define("NO_KEEP_STATISTIC", true); define('NO_AGENT_CHECK', true); define("NO_AGENT_STATISTIC", true); define("NOT_CHECK_PERMISSIONS", true); define('DisableEventsCheck', true); require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); CComponentUtil::__IncludeLang(dirname($_SERVER["SCRIPT_NAME"]), "/ajax.php"); $arResult = array(); if($USER->IsAuthorized() && check_bitrix_sessid()) { $action = isset($_REQUEST['action']) ? trim($_REQUEST['action']): ''; switch ($action) { case "save_subs": $arSubs = isset($_REQUEST['subs']) ? $_REQUEST['subs']: array(); if (!CModule::IncludeModule('sale')) $arResult["ERROR"] = GetMessage("SMOP_BC_NOT_INSTALLED"); $userId = $USER->GetID(); if(!CSaleMobileOrderPush::updateSubscriptions($userId, $arSubs)) $arResult["ERROR"] = GetMessage("SMOP_SAVE_SUBS_ERROR"); break; } } else { $arResult["ERROR"] = GetMessage("SMOP_ACCESS_DENIED"); } if(isset($arResult["ERROR"])) $arResult["RESULT"] = "ERROR"; else $arResult["RESULT"] = "OK"; die(json_encode($arResult));