GetID(); if (!CModule::IncludeModule("socialservices")) { echo CUtil::PhpToJsObject(Array('ERROR' => 'SS_MODULE_NOT_INSTALLED')); die(); } if (intval($userId) <= 0) { echo CUtil::PhpToJsObject(Array('ERROR' => 'AUTHORIZE_ERROR')); die(); } if (check_bitrix_sessid()) { CUtil::JSPostUnescape(); if($_REQUEST['action'] == "getuserdata" || $_REQUEST['action'] == 'getsettings') { $serializedSocservUser = CUserOptions::GetOption("socialservices", "user_socserv_array", '', $userId); if(CheckSerializedData($serializedSocservUser)) $arResult['SOCSERVARRAY'] = unserialize($serializedSocservUser); if(!isset($arResult['SOCSERVARRAY']) || !is_array($arResult['SOCSERVARRAY'])) $arResult['SOCSERVARRAY'] = ''; if($_REQUEST['checkEnabled'] == 'true') $arResult['ENABLED'] = CUserOptions::GetOption("socialservices", "user_socserv_enable", "N", $userId); $arResult['STARTSEND'] = CUserOptions::GetOption("socialservices", "user_socserv_start_day", "N", $userId); $arResult['ENDSEND'] = CUserOptions::GetOption("socialservices", "user_socserv_end_day", "N", $userId); $arResult['STARTTEXT'] = CUserOptions::GetOption("socialservices", "user_socserv_start_text", GetMessage("JS_CORE_SS_WORKDAY_START"), $userId); $arResult['ENDTEXT'] = CUserOptions::GetOption("socialservices", "user_socserv_end_text", GetMessage("JS_CORE_SS_WORKDAY_END"), $userId); $arResult['SOCSERVARRAYALL'] = CSocServAuthManager::GetUserArrayForSendMessages($userId); $arResult['USER_ID'] = $userId; $tooltipPathToUser = COption::GetOptionString("main", "TOOLTIP_PATH_TO_USER", false, SITE_ID); if($tooltipPathToUser) $pathToUser = str_replace("#user_id#", $userId, $tooltipPathToUser)."edit/?current_fieldset=SOCSERV#soc-serv-title-id"; else $pathToUser = "/company/personal/user/$userId/edit/?current_fieldset=SOCSERV#soc-serv-title-id"; $arResult["SETUP_MESSAGE"] = GetMessage(("JS_CORE_SS_SETUP_ACCOUNT"), array("#class#" => "class=\"bx-ss-soc-serv-setup-link\"", "#link#" => $pathToUser)); if($_REQUEST['action'] == "getuserdata") { echo CUtil::PhpToJSObject($arResult); } else { $t = filemtime($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/js/socialservices/ss_timeman.js"); ?> BX.loadCSS('/bitrix/js/socialservices/css/ss.css'); BX.loadScript('/bitrix/js/socialservices/ss_timeman.js?
Warning: Undefined variable $t in D:\ktt\ttepla.com\public_html\bitrix\modules\socialservices\tools\socserv.ajax.php on line 61
', function(){ window.SOCSERV_DATA =
Fatal error: Uncaught Error: Class "CUtil" not found in D:\ktt\ttepla.com\public_html\bitrix\modules\socialservices\tools\socserv.ajax.php:62 Stack trace: #0 {main} thrown in D:\ktt\ttepla.com\public_html\bitrix\modules\socialservices\tools\socserv.ajax.php on line 62