!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/guzzlehttp/guzzle/src/Event/   drwxrwxr-x
Free 15.59 GB of 61.93 GB (25.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Emitter.php (4.49 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Event;

/**
 * Guzzle event emitter.
 *
 * Some of this class is based on the Symfony EventDispatcher component, which
 * ships with the following license:
 *
 *     This file is part of the Symfony package.
 *
 *     (c) Fabien Potencier <fabien@symfony.com>
 *
 *     For the full copyright and license information, please view the LICENSE
 *     file that was distributed with this source code.
 *
 * @link https://github.com/symfony/symfony/tree/master/src/Symfony/Component/EventDispatcher
 */
class Emitter implements EmitterInterface
{
    
/** @var array */
    
private $listeners = [];

    
/** @var array */
    
private $sorted = [];

    public function 
on($eventName, callable $listener$priority 0)
    {
        if (
$priority === 'first') {
            
$priority = isset($this->listeners[$eventName])
                ? 
max(array_keys($this->listeners[$eventName])) + 1
                
1;
        } elseif (
$priority === 'last') {
            
$priority = isset($this->listeners[$eventName])
                ? 
min(array_keys($this->listeners[$eventName])) - 1
                
: -1;
        }

        
$this->listeners[$eventName][$priority][] = $listener;
        unset(
$this->sorted[$eventName]);
    }

    public function 
once($eventName, callable $listener$priority 0)
    {
        
$onceListener = function (
            
EventInterface $event,
            
$eventName
        
) use (&$onceListener$eventName$listener$priority) {
            
$this->removeListener($eventName$onceListener);
            
$listener($event$eventName$this);
        };

        
$this->on($eventName$onceListener$priority);
    }

    public function 
removeListener($eventName, callable $listener)
    {
        if (empty(
$this->listeners[$eventName])) {
            return;
        }

        foreach (
$this->listeners[$eventName] as $priority => $listeners) {
            if (
false !== ($key array_search($listener$listenerstrue))) {
                unset(
                    
$this->listeners[$eventName][$priority][$key],
                    
$this->sorted[$eventName]
                );
            }
        }
    }

    public function 
listeners($eventName null)
    {
        
// Return all events in a sorted priority order
        
if ($eventName === null) {
            foreach (
array_keys($this->listeners) as $eventName) {
                if (empty(
$this->sorted[$eventName])) {
                    
$this->listeners($eventName);
                }
            }
            return 
$this->sorted;
        }

        
// Return the listeners for a specific event, sorted in priority order
        
if (empty($this->sorted[$eventName])) {
            
$this->sorted[$eventName] = [];
            if (isset(
$this->listeners[$eventName])) {
                
krsort($this->listeners[$eventName], SORT_NUMERIC);
                foreach (
$this->listeners[$eventName] as $listeners) {
                    foreach (
$listeners as $listener) {
                        
$this->sorted[$eventName][] = $listener;
                    }
                }
            }
        }

        return 
$this->sorted[$eventName];
    }

    public function 
hasListeners($eventName)
    {
        return !empty(
$this->listeners[$eventName]);
    }

    public function 
emit($eventNameEventInterface $event)
    {
        if (isset(
$this->listeners[$eventName])) {
            foreach (
$this->listeners($eventName) as $listener) {
                
$listener($event$eventName);
                if (
$event->isPropagationStopped()) {
                    break;
                }
            }
        }

        return 
$event;
    }

    public function 
attach(SubscriberInterface $subscriber)
    {
        foreach (
$subscriber->getEvents() as $eventName => $listeners) {
            if (
is_array($listeners[0])) {
                foreach (
$listeners as $listener) {
                    
$this->on(
                        
$eventName,
                        [
$subscriber$listener[0]],
                        isset(
$listener[1]) ? $listener[1] : 0
                    
);
                }
            } else {
                
$this->on(
                    
$eventName,
                    [
$subscriber$listeners[0]],
                    isset(
$listeners[1]) ? $listeners[1] : 0
                
);
            }
        }
    }

    public function 
detach(SubscriberInterface $subscriber)
    {
        foreach (
$subscriber->getEvents() as $eventName => $listener) {
            
$this->removeListener($eventName, [$subscriber$listener[0]]);
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6627 ]--