/
home
/
techb158
/
exp.abdallabala.com
/
vendor
/
mpdf
/
mpdf
/
src
/
/home/techb158/exp.abdallabala.com/vendor/mpdf/mpdf/src
mkdir
upload
Name
Size
Mode
Actions
Barcode/
-
0755
rm
Color/
-
0755
rm
Config/
-
0755
rm
Conversion/
-
0755
rm
Css/
-
0755
rm
Exception/
-
0755
rm
File/
-
0755
rm
Fonts/
-
0755
rm
Gif/
-
0755
rm
Image/
-
0755
rm
Language/
-
0755
rm
Log/
-
0755
rm
Output/
-
0755
rm
Pdf/
-
0755
rm
Shaper/
-
0755
rm
Tag/
-
0755
rm
Utils/
-
0755
rm
Writer/
-
0755
rm
Barcode.php
5078
0644
edit
dl
rm
Cache.php
2348
0644
edit
dl
rm
CssManager.php
78728
0644
edit
dl
rm
DirectWrite.php
14929
0644
edit
dl
rm
Form.php
68873
0644
edit
dl
rm
FpdiTrait.php
11873
0644
edit
dl
rm
functions-dev.php
165
0644
edit
dl
rm
Gradient.php
34748
0644
edit
dl
rm
HTMLParserMode.php
731
0644
edit
dl
rm
Hyphenator.php
4959
0644
edit
dl
rm
Mpdf.php
957575
0644
edit
dl
rm
MpdfException.php
73
0644
edit
dl
rm
MpdfImageException.php
82
0644
edit
dl
rm
Otl.php
254307
0644
edit
dl
rm
OtlDump.php
166978
0644
edit
dl
rm
PageFormat.php
2391
0644
edit
dl
rm
RemoteContentFetcher.php
3421
0644
edit
dl
rm
ServiceFactory.php
4512
0644
edit
dl
rm
SizeConverter.php
3469
0644
edit
dl
rm
Strict.php
1535
0644
edit
dl
rm
TableOfContents.php
33451
0644
edit
dl
rm
Tag.php
7405
0644
edit
dl
rm
TTFontFile.php
172818
0644
edit
dl
rm
TTFontFileAnalysis.php
14551
0644
edit
dl
rm
Ucdn.php
131957
0644
edit
dl
rm
Edit:
/home/techb158/exp.abdallabala.com/vendor/mpdf/mpdf/src/Cache.php
(2348B)
<?php namespace Mpdf; use DirectoryIterator; class Cache { private $basePath; private $cleanupInterval; public function __construct($basePath, $cleanupInterval = 3600) { if (!is_int($cleanupInterval) && false !== $cleanupInterval) { throw new \Mpdf\MpdfException('Cache cleanup interval has to be an integer or false'); } if (!$this->createBasePath($basePath)) { throw new \Mpdf\MpdfException(sprintf('Temporary files directory "%s" is not writable', $basePath)); } $this->basePath = $basePath; $this->cleanupInterval = $cleanupInterval; } protected function createBasePath($basePath) { if (!file_exists($basePath)) { if (!$this->createBasePath(dirname($basePath))) { return false; } if (!$this->createDirectory($basePath)) { return false; } } if (!is_writable($basePath) || !is_dir($basePath)) { return false; } return true; } protected function createDirectory($basePath) { if (!mkdir($basePath)) { return false; } if (!chmod($basePath, 0777)) { return false; } return true; } public function tempFilename($filename) { return $this->getFilePath($filename); } public function has($filename) { return file_exists($this->getFilePath($filename)); } public function load($filename) { return file_get_contents($this->getFilePath($filename)); } public function write($filename, $data) { $tempFile = tempnam($this->basePath, 'cache_tmp_'); file_put_contents($tempFile, $data); $path = $this->getFilePath($filename); rename($tempFile, $path); return $path; } public function remove($filename) { return unlink($this->getFilePath($filename)); } public function clearOld() { $iterator = new DirectoryIterator($this->basePath); /** @var \DirectoryIterator $item */ foreach ($iterator as $item) { if (!$item->isDot() && $item->isFile() && !$this->isDotFile($item) && $this->isOld($item)) { unlink($item->getPathname()); } } } private function getFilePath($filename) { return $this->basePath . '/' . $filename; } private function isOld(DirectoryIterator $item) { return $this->cleanupInterval ? $item->getMTime() + $this->cleanupInterval < time() : false; } public function isDotFile(DirectoryIterator $item) { return substr($item->getFilename(), 0, 1) === '.'; } }
Save
cmd:
run