uawdijnntqw1x1x1
IP : 13.58.76.154
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
ekb.axolotls.ru
/
bitrix
/
modules
/
disk
/
lib
/
document
/
blankfiledata.php
/
/
<?php namespace Bitrix\Disk\Document; use Bitrix\Disk\TypeFile; use Bitrix\Main\Localization\Loc; use Bitrix\Main\SystemException; use Bitrix\Main\IO; Loc::loadMessages(__FILE__); class BlankFileData extends FileData { public function __construct($type) { parent::__construct(); $type = trim(strtolower($type), '.'); if (!$this->issetType($type)) { throw new SystemException("Could not find type '{$type}' in BlankFile"); } $typeData = $this->getType($type); $this->name = $typeData['newFileName'] . $typeData['ext']; $this->mimeType = TypeFile::getMimeTypeByFilename($this->name); $this->src = $typeData['src']; $this->size = IO\File::isFileExists($typeData['src']) ? filesize($typeData['src']) : 0; } protected function issetType($type) { $typeList = $this->getTypeList(); return isset($typeList[$type]); } protected function getTypeList() { return array( 'docx' => array( 'newFileName' => Loc::getMessage('DISK_BLANK_FILE_DATA_NEW_FILE_DOCX'), 'name' => Loc::getMessage('DISK_BLANK_FILE_DATA_TYPE_DOCX'), 'src' => static::getPathToBlankDocsFolder() . 'blank.docx', 'ext' => '.docx', ), 'pptx' => array( 'newFileName' => Loc::getMessage('DISK_BLANK_FILE_DATA_NEW_FILE_PPTX'), 'name' => Loc::getMessage('DISK_BLANK_FILE_DATA_TYPE_PPTX'), 'src' => static::getPathToBlankDocsFolder() . 'blank.pptx', 'ext' => '.pptx', ), 'xlsx' => array( 'newFileName' => Loc::getMessage('DISK_BLANK_FILE_DATA_NEW_FILE_XLSX'), 'name' => Loc::getMessage('DISK_BLANK_FILE_DATA_TYPE_XLSX'), 'src' => static::getPathToBlankDocsFolder() . 'blank.xlsx', 'ext' => '.xlsx', ) ); } protected static function getPathToBlankDocsFolder() { return realpath(__DIR__ . '/blankdocs/') . '/'; } protected function getType($type) { $typeList = $this->getTypeList(); return isset($typeList[$type]) ? $typeList[$type] : array(); } }
/var/www/axolotl/data/www/ekb.axolotls.ru/bitrix/modules/disk/lib/document/blankfiledata.php