!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/Cell/   drwxr-xr-x
Free 13.19 GB of 57.97 GB (22.75%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Cell;

use 
PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;

class 
RowRange implements AddressRange
{
    
/**
     * @var ?Worksheet
     */
    
protected $worksheet;

    
/**
     * @var int
     */
    
protected $from;

    
/**
     * @var int
     */
    
protected $to;

    public function 
__construct(int $from, ?int $to null, ?Worksheet $worksheet null)
    {
        
$this->validateFromTo($from$to ?? $from);
        
$this->worksheet $worksheet;
    }

    public static function 
fromArray(array $array, ?Worksheet $worksheet null): self
    
{
        [
$from$to] = $array;

        return new 
self($from$to$worksheet);
    }

    private function 
validateFromTo(int $fromint $to): void
    
{
        
// Identify actual top and bottom values (in case we've been given bottom and top)
        
$this->from min($from$to);
        
$this->to max($from$to);
    }

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

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

    public function 
rowCount(): int
    
{
        return 
$this->to $this->from 1;
    }

    public function 
shiftRight(int $offset 1): self
    
{
        
$newFrom $this->from $offset;
        
$newFrom = ($newFrom 1) ? $newFrom;

        
$newTo $this->to $offset;
        
$newTo = ($newTo 1) ? $newTo;

        return new 
self($newFrom$newTo$this->worksheet);
    }

    public function 
shiftLeft(int $offset 1): self
    
{
        return 
$this->shiftRight($offset);
    }

    public function 
toCellRange(): CellRange
    
{
        return new 
CellRange(
            
CellAddress::fromColumnAndRow(Coordinate::columnIndexFromString('A'), $this->from$this->worksheet),
            
CellAddress::fromColumnAndRow(Coordinate::columnIndexFromString(AddressRange::MAX_COLUMN), $this->to)
        );
    }

    public function 
__toString(): string
    
{
        if (
$this->worksheet !== null) {
            
$title str_replace("'""''"$this->worksheet->getTitle());

            return 
"'{$title}'!{$this->from}:{$this->to}";
        }

        return 
"{$this->from}:{$this->to}";
    }
}

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