• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/general.php
  • Класс: CWebDavBase
  • Вызов: CWebDavBase::_multipart_byterange_header
function _multipart_byterange_header($mimetype = false, $from = false, $to=false, $total=false)
{
	if ($mimetype === false)
	{
		if (empty($this->multipart_separator))
		{
			$this->multipart_separator = "SEPARATOR_".md5(microtime());

			self::set_header("Content-type: multipart/byteranges; boundary=".$this->multipart_separator);
		}
		else
		{
			echo "n--{".$this->multipart_separator."}--";
		}
	}
	else
	{
		echo "n--{".$this->multipart_separator."}n";
		echo "Content-type: $mimetypen";
		echo "Content-range: $from-$to/". ($total === false ? "*" : $total);
		echo "nn";
	}
}