• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/crypt.php
  • Класс: CSteganos
  • Вызов: CSteganos::ShowData
function ShowData($containerFile)
{
	if (!file_exists($containerFile) || !is_file($containerFile) || !is_readable($containerFile))
	{
		$this->errorMessage = "The container file '".$containerFile."' was not found or not readable";
		return false;
	}

	$containerFile_tmp = trim($containerFile, ". rnt");
	$arContainerFile_tmp = explode(".", $containerFile_tmp);
	$containerFileExt = mb_strtolower($arContainerFile_tmp[count($arContainerFile_tmp) - 1]);
	switch(mb_strtolower($containerFileExt))
	{
		case "bmp":
			$this->containerType = "bmp";
			break;
		case "txt":
		case "php":
		case "html":
		case "htm":
		case "css":
			$this->containerType = "txt";
			break;
		default:
			$this->errorMessage = "Unknown container type";
			return false;
	}

	$this->containerFile = $containerFile;

	$this->__OpenContainer();

	if (!$this->__GetHiddenInfo())
		return false;

	$this->__ShowData();

	//$this->__UnCompressData();

	return $this->data;
}