$cache_path = "/".SITE_ID.'/'.str_replace(':', '/', $this->GetName())."/".$arParams["OBJECT_ID"]; } if(!$USER->IsAuthorized()) { $arResult['CURRENT_USER'] = 0; if($arResult['NON_AUTHORIZED_USER_CAN_COMMENT'] == 'Y') { $arResult['CAN_COMMENT'] = 'Y'; if ($arResult["CAPTCHA_TYPE"] == "CAPTCHA_BITRIX") { $arResult["CAPTCHA_CODE"] = htmlspecialchars($APPLICATION->CaptchaGetCode(), ENT_COMPAT | ENT_HTML401, SITE_CHARSET); } else if($arResult["CAPTCHA_TYPE"] == "ROBOT") { $arResult["CAPTCHA_ROBOT_CODE"] = CTreelikeComments::GenerateString(rand(5,15)); SetCookie("gString", $arResult["CAPTCHA_ROBOT_CODE"], time()+3600*24, "/"); $_SESSION["CAPTCHA_ROBOT_CODE"] = $arResult["CAPTCHA_ROBOT_CODE"]; } else { $arResult["NO_CAPTCHA"] = "Y"; } } else { $arResult['CAN_COMMENT'] = 'N'; } } else {