Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.223.122.53
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
myadmin /
vendor /
bacon /
bacon-qr-code /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Common
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Encoder
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Exception
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Renderer
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Writer.php
1.67
KB
-rw-r--r--
2021-02-05 18:31
Save
Rename
<?php declare(strict_types = 1); namespace BaconQrCode; use BaconQrCode\Common\ErrorCorrectionLevel; use BaconQrCode\Encoder\Encoder; use BaconQrCode\Exception\InvalidArgumentException; use BaconQrCode\Renderer\RendererInterface; /** * QR code writer. */ final class Writer { /** * Renderer instance. * * @var RendererInterface */ private $renderer; /** * Creates a new writer with a specific renderer. */ public function __construct(RendererInterface $renderer) { $this->renderer = $renderer; } /** * Writes QR code and returns it as string. * * Content is a string which *should* be encoded in UTF-8, in case there are * non ASCII-characters present. * * @throws InvalidArgumentException if the content is empty */ public function writeString( string $content, string $encoding = Encoder::DEFAULT_BYTE_MODE_ECODING, ?ErrorCorrectionLevel $ecLevel = null ) : string { if (strlen($content) === 0) { throw new InvalidArgumentException('Found empty contents'); } if (null === $ecLevel) { $ecLevel = ErrorCorrectionLevel::L(); } return $this->renderer->render(Encoder::encode($content, $ecLevel, $encoding)); } /** * Writes QR code to a file. * * @see Writer::writeString() */ public function writeFile( string $content, string $filename, string $encoding = Encoder::DEFAULT_BYTE_MODE_ECODING, ?ErrorCorrectionLevel $ecLevel = null ) : void { file_put_contents($filename, $this->writeString($content, $encoding, $ecLevel)); } }