• Модуль: clouds
  • Путь к файлу: ~/bitrix/modules/clouds/classes/general/storage_service_s3.php
  • Класс: CCloudStorageService_S3
  • Вызов: CCloudStorageService_S3::GetSettingsHTML
function GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
{
	if($bVarsFromForm)
		$arSettings = $_POST["SETTINGS"][$this->GetID()];
	else
		$arSettings = unserialize($arBucket["SETTINGS"], ['allowed_classes' => false]);

	if(!is_array($arSettings))
	{
		$arSettings = array(
			"HOST" => "",
			"ACCESS_KEY" => "",
			"SECRET_KEY" => "",
		);
	}

	$htmlID = htmlspecialcharsbx($this->GetID());
	$show = (($cur_SERVICE_ID == $this->GetID()) || !$bServiceSet)? '': 'none';
	$useHttps = $arSettings['USE_HTTPS'] ?? 'N';

	$result = '
	
		'.GetMessage("CLO_STORAGE_S3_EDIT_HOST").':
		
	
	
		'.GetMessage("CLO_STORAGE_S3_EDIT_ACCESS_KEY").':
		
	
	
		'.GetMessage("CLO_STORAGE_S3_EDIT_SECRET_KEY").':
		
	
	
		'.GetMessage("CLO_STORAGE_S3_EDIT_USE_HTTPS").':
		
	
	';
	return $result;
}