!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/game.picotech.app/public_html/core/vendor/spatie/crawler/src/CrawlObservers/   drwxr-xr-x
Free 26.47 GB of 117.98 GB (22.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Spatie\Crawler\CrawlObservers;

use 
ArrayAccess;
use 
GuzzleHttp\Exception\RequestException;
use 
Iterator;
use 
Psr\Http\Message\ResponseInterface;
use 
Spatie\Crawler\CrawlUrl;

class 
CrawlObserverCollection implements ArrayAccessIterator
{
    protected 
int $position;

    public function 
__construct(protected array $observers = [])
    {
        
$this->position 0;
    }

    public function 
addObserver(CrawlObserver $observer): void
    
{
        
$this->observers[] = $observer;
    }

    public function 
crawled(CrawlUrl $crawlUrlResponseInterface $response): void
    
{
        foreach (
$this->observers as $crawlObserver) {
            
$crawlObserver->crawled(
                
$crawlUrl->url,
                
$response,
                
$crawlUrl->foundOnUrl
            
);
        }
    }

    public function 
crawlFailed(CrawlUrl $crawlUrlRequestException $exception): void
    
{
        foreach (
$this->observers as $crawlObserver) {
            
$crawlObserver->crawlFailed(
                
$crawlUrl->url,
                
$exception,
                
$crawlUrl->foundOnUrl
            
);
        }
    }

    public function 
current(): mixed
    
{
        return 
$this->observers[$this->position];
    }

    public function 
offsetGet(mixed $offset): mixed
    
{
        return 
$this->observers[$offset] ?? null;
    }

    public function 
offsetSet(mixed $offsetmixed $value): void
    
{
        if (
is_null($offset)) {
            
$this->observers[] = $value;
        } else {
            
$this->observers[$offset] = $value;
        }
    }

    public function 
offsetExists(mixed $offset): bool
    
{
        return isset(
$this->observers[$offset]);
    }

    public function 
offsetUnset(mixed $offset): void
    
{
        unset(
$this->observers[$offset]);
    }

    public function 
next(): void
    
{
        
$this->position++;
    }

    public function 
key(): mixed
    
{
        return 
$this->position;
    }

    public function 
valid(): bool
    
{
        return isset(
$this->observers[$this->position]);
    }

    public function 
rewind(): void
    
{
        
$this->position 0;
    }
}

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