!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/vendor/pragmarx/google2fa-qrcode/src/   drwxr-xr-x
Free 13.82 GB of 61.93 GB (22.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Google2FA.php (2.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace PragmaRX\Google2FAQRCode;

use 
BaconQrCode\Writer;
use 
BaconQrCode\Renderer\Image\Png;
use 
BaconQrCode\Renderer\ImageRenderer;
use 
PragmaRX\Google2FAQRCode\QRCode\Bacon;
use 
PragmaRX\Google2FAQRCode\QRCode\Chillerlan;
use 
BaconQrCode\Renderer\Image\RendererInterface;
use 
BaconQrCode\Writer as BaconQrCodeWriter;
use 
BaconQrCode\Renderer\Image\ImagickImageBackEnd;
use 
PragmaRX\Google2FA\Google2FA as Google2FAPackage;
use 
BaconQrCode\Renderer\RendererStyle\RendererStyle;
use 
BaconQrCode\Renderer\Image\ImageBackEndInterface;
use 
PragmaRX\Google2FAQRCode\Exceptions\MissingQrCodeServiceException;

class 
Google2FA extends Google2FAPackage
{
    
/**
     * @var ImageBackEndInterface|RendererInterface|null $imageBackEnd
     */
    
protected $qrCodeService;

    
/**
     * Google2FA constructor.
     *
     * @param ImageBackEndInterface|RendererInterface|null $imageBackEnd
     */
    
public function __construct($qrCodeService null)
    {
        
$this->setQrCodeService(
            empty(
$qrCodeService)
                ? 
$this->qrCodeServiceFactory()
                : 
$qrCodeService
        
);
    }

    
/**
     * Generates a QR code data url to display inline.
     *
     * @param string $company
     * @param string $holder
     * @param string $secret
     * @param int    $size
     * @param string $encoding Default to UTF-8
     *
     * @return string
     */
    
public function getQRCodeInline(
        
$company,
        
$holder,
        
$secret,
        
$size 200,
        
$encoding 'utf-8'
    
) {
        if (empty(
$this->getQrCodeService())) {
            throw new 
MissingQrCodeServiceException(
                
'You need to install a service package or assign yourself the service to be used.'
            
);
        }

        return 
$this->qrCodeService->getQRCodeInline(
            
$this->getQRCodeUrl($company$holder$secret),
            
$size,
            
$encoding
        
);
    }

    
/**
     * Service setter
     *
     * @return \PragmaRX\Google2FAQRCode\QRCode\QRCodeServiceContract
     */
    
public function getQrCodeService()
    {
        return 
$this->qrCodeService;
    }

    
/**
     * Service setter
     *
     * @return self
     */
    
public function setQrCodeService($service)
    {
        
$this->qrCodeService $service;

        return 
$this;
    }

    
/**
     * Create the QR Code service instance
     *
     * @return \PragmaRX\Google2FAQRCode\QRCode\QRCodeServiceContract
     */
    
public function qrCodeServiceFactory()
    {
        if (
            
class_exists('BaconQrCode\Writer') &&
            
class_exists('BaconQrCode\Renderer\ImageRenderer')
        ) {
            return new 
Bacon();
        }

        if (
class_exists('chillerlan\QRCode\QRCode')) {
            return new 
Chillerlan();
        }

        return 
null;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4866 ]--