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 : 3.19.255.50
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
bacon /
bacon-qr-code /
src /
Encoder /
Delete
Unzip
Name
Size
Permission
Date
Action
BlockPair.php
1.08
KB
-rw-r--r--
2020-10-30 09:00
ByteMatrix.php
2.96
KB
-rw-r--r--
2020-10-30 09:00
Encoder.php
20.83
KB
-rw-r--r--
2020-10-30 09:00
MaskUtil.php
8.18
KB
-rw-r--r--
2020-10-30 09:00
MatrixUtil.php
16.48
KB
-rw-r--r--
2020-10-30 09:00
QrCode.php
2.71
KB
-rw-r--r--
2020-10-30 09:00
Save
Rename
<?php declare(strict_types = 1); namespace BaconQrCode\Encoder; use BaconQrCode\Common\ErrorCorrectionLevel; use BaconQrCode\Common\Mode; use BaconQrCode\Common\Version; /** * QR code. */ final class QrCode { /** * Number of possible mask patterns. */ public const NUM_MASK_PATTERNS = 8; /** * Mode of the QR code. * * @var Mode */ private $mode; /** * EC level of the QR code. * * @var ErrorCorrectionLevel */ private $errorCorrectionLevel; /** * Version of the QR code. * * @var Version */ private $version; /** * Mask pattern of the QR code. * * @var int */ private $maskPattern = -1; /** * Matrix of the QR code. * * @var ByteMatrix */ private $matrix; public function __construct( Mode $mode, ErrorCorrectionLevel $errorCorrectionLevel, Version $version, int $maskPattern, ByteMatrix $matrix ) { $this->mode = $mode; $this->errorCorrectionLevel = $errorCorrectionLevel; $this->version = $version; $this->maskPattern = $maskPattern; $this->matrix = $matrix; } /** * Gets the mode. */ public function getMode() : Mode { return $this->mode; } /** * Gets the EC level. */ public function getErrorCorrectionLevel() : ErrorCorrectionLevel { return $this->errorCorrectionLevel; } /** * Gets the version. */ public function getVersion() : Version { return $this->version; } /** * Gets the mask pattern. */ public function getMaskPattern() : int { return $this->maskPattern; } /** * Gets the matrix. * * @return ByteMatrix */ public function getMatrix() { return $this->matrix; } /** * Validates whether a mask pattern is valid. */ public static function isValidMaskPattern(int $maskPattern) : bool { return $maskPattern > 0 && $maskPattern < self::NUM_MASK_PATTERNS; } /** * Returns a string representation of the QR code. */ public function __toString() : string { $result = "<<\n" . ' mode: ' . $this->mode . "\n" . ' ecLevel: ' . $this->errorCorrectionLevel . "\n" . ' version: ' . $this->version . "\n" . ' maskPattern: ' . $this->maskPattern . "\n"; if ($this->matrix === null) { $result .= " matrix: null\n"; } else { $result .= " matrix:\n"; $result .= $this->matrix; } $result .= ">>\n"; return $result; } }