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


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

namespace 
BaconQrCode\Common;

/**
 * Encapsulates a set of error-correction blocks in one symbol version.
 *
 * Most versions will use blocks of differing sizes within one version, so, this encapsulates the parameters for each
 * set of blocks. It also holds the number of error-correction codewords per block since it will be the same across all
 * blocks within one version.
 */
final class EcBlocks
{
    
/**
     * Number of EC codewords per block.
     *
     * @var int
     */
    
private $ecCodewordsPerBlock;

    
/**
     * List of EC blocks.
     *
     * @var EcBlock[]
     */
    
private $ecBlocks;

    public function 
__construct(int $ecCodewordsPerBlockEcBlock ...$ecBlocks)
    {
        
$this->ecCodewordsPerBlock $ecCodewordsPerBlock;
        
$this->ecBlocks $ecBlocks;
    }

    
/**
     * Returns the number of EC codewords per block.
     */
    
public function getEcCodewordsPerBlock() : int
    
{
        return 
$this->ecCodewordsPerBlock;
    }

    
/**
     * Returns the total number of EC block appearances.
     */
    
public function getNumBlocks() : int
    
{
        
$total 0;

        foreach (
$this->ecBlocks as $ecBlock) {
            
$total += $ecBlock->getCount();
        }

        return 
$total;
    }

    
/**
     * Returns the total count of EC codewords.
     */
    
public function getTotalEcCodewords() : int
    
{
        return 
$this->ecCodewordsPerBlock $this->getNumBlocks();
    }

    
/**
     * Returns the EC blocks included in this collection.
     *
     * @return EcBlock[]
     */
    
public function getEcBlocks() : array
    {
        return 
$this->ecBlocks;
    }
}

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