!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)

/var/www/html/main_file/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/   drwxr-xr-x
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Worksheet;

use 
PhpOffice\PhpSpreadsheet\Cell\CellAddress;
use 
PhpOffice\PhpSpreadsheet\Cell\CellRange;
use 
PhpOffice\PhpSpreadsheet\Cell\Coordinate;

class 
AutoFit
{
    protected 
Worksheet $worksheet;

    public function 
__construct(Worksheet $worksheet)
    {
        
$this->worksheet $worksheet;
    }

    public function 
getAutoFilterIndentRanges(): array
    {
        
$autoFilterIndentRanges = [];
        
$autoFilterIndentRanges[] = $this->getAutoFilterIndentRange($this->worksheet->getAutoFilter());

        foreach (
$this->worksheet->getTableCollection() as $table) {
            
/** @var Table $table */
            
if ($table->getShowHeaderRow() === true && $table->getAllowFilter() === true) {
                
$autoFilter $table->getAutoFilter();
                if (
$autoFilter !== null) {
                    
$autoFilterIndentRanges[] = $this->getAutoFilterIndentRange($autoFilter);
                }
            }
        }

        return 
array_filter($autoFilterIndentRanges);
    }

    private function 
getAutoFilterIndentRange(AutoFilter $autoFilter): ?string
    
{
        
$autoFilterRange $autoFilter->getRange();
        
$autoFilterIndentRange null;

        if (!empty(
$autoFilterRange)) {
            
$autoFilterRangeBoundaries Coordinate::rangeBoundaries($autoFilterRange);
            
$autoFilterIndentRange = (string) new CellRange(
                
CellAddress::fromColumnAndRow($autoFilterRangeBoundaries[0][0], $autoFilterRangeBoundaries[0][1]),
                
CellAddress::fromColumnAndRow($autoFilterRangeBoundaries[1][0], $autoFilterRangeBoundaries[0][1])
            );
        }

        return 
$autoFilterIndentRange;
    }
}

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