• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/liveid.php
  • Класс: WindowsLiveLogin
  • Вызов: WindowsLiveLogin::getConsentUrl
function getConsentUrl($offers, $context=null, $ru=null, $market=null)
{
	if (!$offers) {
		//throw new Exception('Error: getConsentUrl: Invalid offers list.');
		$this->setError('Error: getConsentUrl: Invalid offers list.');
		return false;
	}
	$url  = $this->getConsentBaseUrl();
	$url .= 'Delegation.aspx?ps=' . urlencode($offers);
	$ru = ($ru ? $ru : $this->getReturnUrl());
	$url .= ($ru ? '&ru=' . urlencode($ru) : '');
	$pl = $this->getPolicyUrl();
	$url .= ($pl ? '&pl=' . urlencode($pl) : '');
	$url .= ($market ? '&mkt=' . urlencode($market) : '');
	if (!$this->_force_delauth_nonprovisioned) {
		$url .= '&app=' . $this->getAppVerifier();
	}
	$url .= ($context ? '&appctx=' . urlencode($context) : '');
	return $url;
}