!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/bacon/bacon-qr-code/src/Renderer/   drwxr-xr-x
Free 13.55 GB of 61.93 GB (21.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PlainTextRenderer.php (2.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types 1);

namespace 
BaconQrCode\Renderer;

use 
BaconQrCode\Encoder\QrCode;
use 
BaconQrCode\Exception\InvalidArgumentException;

final class 
PlainTextRenderer implements RendererInterface
{
    
/**
     * UTF-8 full block (U+2588)
     */
    
private const FULL_BLOCK "\xe2\x96\x88";

    
/**
     * UTF-8 upper half block (U+2580)
     */
    
private const UPPER_HALF_BLOCK "\xe2\x96\x80";

    
/**
     * UTF-8 lower half block (U+2584)
     */
    
private const LOWER_HALF_BLOCK "\xe2\x96\x84";

    
/**
     * UTF-8 no-break space (U+00A0)
     */
    
private const EMPTY_BLOCK "\xc2\xa0";

    
/**
     * @var int
     */
    
private $margin;

    public function 
__construct(int $margin 2)
    {
        
$this->margin $margin;
    }

    
/**
     * @throws InvalidArgumentException if matrix width doesn't match height
     */
    
public function render(QrCode $qrCode) : string
    
{
        
$matrix $qrCode->getMatrix();
        
$matrixSize $matrix->getWidth();

        if (
$matrixSize !== $matrix->getHeight()) {
            throw new 
InvalidArgumentException('Matrix must have the same width and height');
        }

        
$rows $matrix->getArray()->toArray();

        if (
!== $matrixSize 2) {
            
$rows[] = array_fill(0$matrixSize0);
        }

        
$horizontalMargin str_repeat(self::EMPTY_BLOCK$this->margin);
        
$result str_repeat("\n", (int) ceil($this->margin 2));

        for (
$i 0$i $matrixSize$i += 2) {
            
$result .= $horizontalMargin;

            
$upperRow $rows[$i];
            
$lowerRow $rows[$i 1];

            for (
$j 0$j $matrixSize; ++$j) {
                
$upperBit $upperRow[$j];
                
$lowerBit $lowerRow[$j];

                if (
$upperBit) {
                    
$result .= $lowerBit self::FULL_BLOCK self::UPPER_HALF_BLOCK;
                } else {
                    
$result .= $lowerBit self::LOWER_HALF_BLOCK self::EMPTY_BLOCK;
                }
            }

            
$result .= $horizontalMargin "\n";
        }

        
$result .= str_repeat("\n", (int) ceil($this->margin 2));

        return 
$result;
    }
}

:: 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.4871 ]--