本文整理匯總了PHP中CSocNetLog::GetSign方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSocNetLog::GetSign方法的具體用法?PHP CSocNetLog::GetSign怎麽用?PHP CSocNetLog::GetSign使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSocNetLog
的用法示例。
在下文中一共展示了CSocNetLog::GetSign方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
return;
}
} elseif ($arParams["ENTITY_TYPE"] == SONET_ENTITY_USER) {
$rsUser = CUser::GetByID($arParams["ENTITY_ID"]);
if (!($arUser = $rsUser->Fetch())) {
ShowError(GetMessage("SONET_LRL_USER_ID_INCORRECT"));
return;
}
}
if (array_key_exists("EVENT_ID", $arParams)) {
if (is_array($arParams["EVENT_ID"])) {
$arResult["EVENT_ID"] = implode("|", $arParams["EVENT_ID"]);
} else {
$arResult["EVENT_ID"] = $arParams["EVENT_ID"];
}
if ($arResult["EVENT_ID"] == "all") {
$arResult["EVENT_ID"] = false;
}
}
$arParams["PATH_TO_RSS"] = trim($arParams["PATH_TO_RSS"]);
if ($GLOBALS["USER"]->IsAuthorized()) {
$arParams["PATH_TO_RSS_MASK"] = trim($arParams["PATH_TO_RSS_MASK"]);
$arResult["PATH_TO_RSS_MASK"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_RSS_MASK"], array("group_id" => $arParams["ENTITY_ID"], "user_id" => $arParams["ENTITY_ID"]));
$arResult["EXTERNAL_HASH"] = CSocNetLog::GetSign($arResult["PATH_TO_RSS_MASK"], $GLOBALS["USER"]->GetID(), SITE_ID);
}
$arResult["PATH_TO_RSS"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_RSS"], array("group_id" => $arParams["ENTITY_ID"], "user_id" => $arParams["ENTITY_ID"], "sign" => $arResult["EXTERNAL_HASH"], "events" => $arResult["EVENT_ID"]));
if (strlen($arParams["PATH_TO_USER"]) <= 0) {
$arParams["PATH_TO_USER"] = htmlspecialcharsbx($APPLICATION->GetCurPage() . "?" . $arParams["PAGE_VAR"] . "=user&" . $arParams["USER_VAR"] . "=#user_id#");
}
$APPLICATION->AddHeadString('<link rel="alternate" type="application/rss+xml" title="RSS" href="' . $arResult["PATH_TO_RSS"] . '" />');
$this->IncludeComponentTemplate();