uawdijnntqw1x1x1
IP : 3.145.180.18
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
/
yar.axolotls.ru
/
bitrix
/
modules
/
webdav
/
classes
/
blankdocument.php
/
/
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); IncludeModuleLangFile(__FILE__); class CWebDavBlankDocument { protected static $typeList = array(); protected $type = null; public function __construct($type) { $type = strtolower($type); $type = trim($type, '.'); if(!$this->issetType($type)) { throw new Exception('Bad type'); } $this->type = $this->getType($type); return; } protected static function getPathToBlankDocsFolder() { return realpath(__DIR__ . '/../tools/blankdocs/') . '/'; } public function getExtension() { return $this->type['ext']; } public function getSrc() { return $this->type['src']; } public function getFileSize() { return file_exists($this->type['src'])? filesize($this->type['src']) : 0; } public function getMimeType() { return CWebDavBase::get_mime_type($this->type['ext']); } public function getNewFileName() { return $this->type['newFileName']; } public static function getTypeList() { if(!empty(static::$typeList)) { return static::$typeList; } static::$typeList['docx'] = array( 'newFileName' => GetMessage('WD_BLANK_DOC_TYPE_NEW_FILE_DOCX'), 'name' => GetMessage('WD_BLANK_DOC_TYPE_DOCX'), 'src' => static::getPathToBlankDocsFolder() . 'blank.docx', 'ext' => '.docx', ); static::$typeList['pptx'] = array( 'newFileName' => GetMessage('WD_BLANK_DOC_TYPE_NEW_FILE_PPTX'), 'name' => GetMessage('WD_BLANK_DOC_TYPE_PPTX'), 'src' => static::getPathToBlankDocsFolder() . 'blank.pptx', 'ext' => '.pptx', ); static::$typeList['xlsx'] = array( 'newFileName' => GetMessage('WD_BLANK_DOC_TYPE_NEW_FILE_XLSX'), 'name' => GetMessage('WD_BLANK_DOC_TYPE_XLSX'), 'src' => static::getPathToBlankDocsFolder() . 'blank.xlsx', 'ext' => '.xlsx', ); return static::$typeList; } public static function getType($type) { $typeList = static::getTypeList(); return isset($typeList[$type])? $typeList[$type] : array(); } public static function issetType($type) { $typeList = static::getTypeList(); return isset($typeList[$type]); } }
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/webdav/classes/blankdocument.php