/home/techb158/exp.abdallabala.com/vendor/mpdf/mpdf/src
NameSizeModeActions
Barcode/-0755rm
Color/-0755rm
Config/-0755rm
Conversion/-0755rm
Css/-0755rm
Exception/-0755rm
File/-0755rm
Fonts/-0755rm
Gif/-0755rm
Image/-0755rm
Language/-0755rm
Log/-0755rm
Output/-0755rm
Pdf/-0755rm
Shaper/-0755rm
Tag/-0755rm
Utils/-0755rm
Writer/-0755rm
Barcode.php50780644editdlrm
Cache.php23480644editdlrm
CssManager.php787280644editdlrm
DirectWrite.php149290644editdlrm
Form.php688730644editdlrm
FpdiTrait.php118730644editdlrm
functions-dev.php1650644editdlrm
Gradient.php347480644editdlrm
HTMLParserMode.php7310644editdlrm
Hyphenator.php49590644editdlrm
Mpdf.php9575750644editdlrm
MpdfException.php730644editdlrm
MpdfImageException.php820644editdlrm
Otl.php2543070644editdlrm
OtlDump.php1669780644editdlrm
PageFormat.php23910644editdlrm
RemoteContentFetcher.php34210644editdlrm
ServiceFactory.php45120644editdlrm
SizeConverter.php34690644editdlrm
Strict.php15350644editdlrm
TableOfContents.php334510644editdlrm
Tag.php74050644editdlrm
TTFontFile.php1728180644editdlrm
TTFontFileAnalysis.php145510644editdlrm
Ucdn.php1319570644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/mpdf/mpdf/src/RemoteContentFetcher.php (3421B)
mpdf = $mpdf; $this->logger = $logger; } public function getFileContentsByCurl($url) { $this->logger->debug(sprintf('Fetching (cURL) content of remote URL "%s"', $url), ['context' => LogContext::REMOTE_CONTENT]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERAGENT, $this->mpdf->curlUserAgent); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->mpdf->curlTimeout); if ($this->mpdf->curlFollowLocation) { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); } if ($this->mpdf->curlAllowUnsafeSslRequests) { curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); } if (is_file($this->mpdf->curlCaCertificate)) { curl_setopt($ch, CURLOPT_CAINFO, $this->mpdf->curlCaCertificate); } if ($this->mpdf->curlProxy) { curl_setopt($ch, CURLOPT_PROXY, $this->mpdf->curlProxy); if ($this->mpdf->curlProxyAuth) { curl_setopt($ch, CURLOPT_PROXYUSERPWD, $this->mpdf->curlProxyAuth); } } $data = curl_exec($ch); if (curl_error($ch)) { $message = sprintf('cURL error: "%s"', curl_error($ch)); $this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]); if ($this->mpdf->debug) { throw new \Mpdf\MpdfException($message); } } $info = curl_getinfo($ch); if (isset($info['http_code']) && $info['http_code'] !== 200) { $message = sprintf('HTTP error: %d', $info['http_code']); $this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]); if ($this->mpdf->debug) { throw new \Mpdf\MpdfException($message); } } curl_close($ch); return $data; } public function getFileContentsBySocket($url) { $this->logger->debug(sprintf('Fetching (socket) content of remote URL "%s"', $url), ['context' => LogContext::REMOTE_CONTENT]); // mPDF 5.7.3 $timeout = 1; $p = parse_url($url); $file = Arrays::get($p, 'path', ''); $scheme = Arrays::get($p, 'scheme', ''); $port = Arrays::get($p, 'port', 80); $prefix = ''; if ($scheme === 'https') { $prefix = 'ssl://'; $port = Arrays::get($p, 'port', 443); } $query = Arrays::get($p, 'query', null); if ($query) { $file .= '?' . $query; } if (!($fh = @fsockopen($prefix . $p['host'], $port, $errno, $errstr, $timeout))) { $this->logger->error(sprintf('Socket error "%s": "%s"', $errno, $errstr), ['context' => LogContext::REMOTE_CONTENT]); return false; } $getstring = 'GET ' . $file . " HTTP/1.0 \r\n" . 'Host: ' . $p['host'] . " \r\n" . "Connection: close\r\n\r\n"; fwrite($fh, $getstring); // Get rid of HTTP header $s = fgets($fh, 1024); if (!$s) { return false; } while (!feof($fh)) { $s = fgets($fh, 1024); if ($s === "\r\n") { break; } } $data = ''; while (!feof($fh)) { $data .= fgets($fh, 1024); } fclose($fh); return $data; } public function setLogger(LoggerInterface $logger) { $this->logger = $logger; } }