• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/liveid.php
  • Класс: WindowsLiveLogin
  • Вызов: WindowsLiveLogin::fetch
function fetch($url)
{
	/*
	if (!($handle = fopen($url, "rb"))) {
		WindowsLiveLogin::debug("error: fetch: Could not open url: $url");
		return;
	}

	if (!($contents = stream_get_contents($handle))) {
		WindowsLiveLogin::debug("Error: fetch: Could not read from url: $url");
	}

	fclose($handle);
	*/

	//$str = $url."nn".$contents."nnn";
	//file_put_contents(__FILE__ . '.ftech.log', $str, FILE_APPEND);

	$contents = CHTTP::sGet($url, false);

	return $contents;
}