���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/tie.cx/vendor/robthree/twofactorauth/lib/Providers/Qr/QRicketProvider.php
���ѧ٧ѧ�
<?php namespace RobThree\Auth\Providers\Qr; // http://qrickit.com/qrickit_apps/qrickit_api.php class QRicketProvider extends BaseHTTPQRCodeProvider { /** @var string */ public $errorcorrectionlevel; /** @var string */ public $bgcolor; /** @var string */ public $color; /** @var string */ public $format; /** * @param string $errorcorrectionlevel * @param string $bgcolor * @param string $color * @param string $format */ public function __construct($errorcorrectionlevel = 'L', $bgcolor = 'ffffff', $color = '000000', $format = 'p') { $this->verifyssl = false; $this->errorcorrectionlevel = $errorcorrectionlevel; $this->bgcolor = $bgcolor; $this->color = $color; $this->format = $format; } /** * {@inheritdoc} */ public function getMimeType() { switch (strtolower($this->format)) { case 'p': return 'image/png'; case 'g': return 'image/gif'; case 'j': return 'image/jpeg'; } throw new QRException(sprintf('Unknown MIME-type: %s', $this->format)); } /** * {@inheritdoc} */ public function getQRCodeImage($qrtext, $size) { return $this->getContent($this->getUrl($qrtext, $size)); } /** * @param string $qrtext the value to encode in the QR code * @param int|string $size the desired size of the QR code * * @return string file contents of the QR code */ public function getUrl($qrtext, $size) { return 'http://qrickit.com/api/qr' . '?qrsize=' . $size . '&e=' . strtolower($this->errorcorrectionlevel) . '&bgdcolor=' . $this->bgcolor . '&fgdcolor=' . $this->color . '&t=' . strtolower($this->format) . '&d=' . rawurlencode($qrtext); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.49 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�