• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/update_class.php
  • Класс: CUpdateSystem
  • Вызов: CUpdateSystem::Report2Server
static function Report2Server($arServerReport)
{
	$strError_tmp = "";

	if (!is_array($arServerReport) || empty($arServerReport))
	{
		$strError_tmp .= "[UR2S01] Empty report.
"; } if ($strError_tmp == '') { $GLOBALS["DB"]->GetVersion(); $strVars = "LICENSE_KEY=".urlencode(md5(CUpdateSystem::GetLicenseKey())). "&CLIENT_SITE=".urlencode($_SERVER["SERVER_NAME"]). "&CLIENT_PHPVER=".urlencode(phpversion()). "&SUPD_DBS=".urlencode($GLOBALS["DB"]->type). "&XE=".urlencode((isset($GLOBALS["DB"]->XE) && $GLOBALS["DB"]->XE) ? "Y" : "N"). "&CANGZIP=".urlencode((CUpdateSystem::IsGzipInstalled()) ? "Y" : "N"); foreach ($arServerReport as $key => $value) { if ($strVars <> '') $strVars .= "&"; $strVars .= "bitm_".$key."=".urlencode($value[0]."!".$value[1]); } } if ($strError_tmp == '') { $content = CUpdateSystem::getHTTPPage("bit_sysreport.php", $strVars, $strError_tmp); if ($content == '') $strError_tmp .= "[UR2S03] Empty server response.
"; } }