• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/classes/general/log.php
  • Класс: CAllSocNetLog
  • Вызов: CAllSocNetLog::GetSign
static function GetSign($url, $userID = false, $site_id = false)
{
	global $USER;

	if (!$url || trim($url) === '')
	{
		return false;
	}

	if (!$userID)
	{
		$userID = $USER->GetID();
	}

	if ($hash = CUser::GetHitAuthHash($url, $userID))
	{
		return $hash;
	}

	return CUser::AddHitAuthHash($url, $userID, $site_id);
}