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

/uploads/script/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/   drwxr-xr-x
Free 13.11 GB of 57.97 GB (22.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Foundation\Support\Providers;

use 
Illuminate\Foundation\Events\DiscoverEvents;
use 
Illuminate\Support\Facades\Event;
use 
Illuminate\Support\ServiceProvider;

class 
EventServiceProvider extends ServiceProvider
{
    
/**
     * The event handler mappings for the application.
     *
     * @var array
     */
    
protected $listen = [];

    
/**
     * The subscriber classes to register.
     *
     * @var array
     */
    
protected $subscribe = [];

    
/**
     * Register the application's event listeners.
     *
     * @return void
     */
    
public function register()
    {
        
$this->booting(function () {
            
$events $this->getEvents();

            foreach (
$events as $event => $listeners) {
                foreach (
array_unique($listeners) as $listener) {
                    
Event::listen($event$listener);
                }
            }

            foreach (
$this->subscribe as $subscriber) {
                
Event::subscribe($subscriber);
            }
        });
    }

    
/**
     * Boot any application services.
     *
     * @return void
     */
    
public function boot()
    {
        
//
    
}

    
/**
     * Get the events and handlers.
     *
     * @return array
     */
    
public function listens()
    {
        return 
$this->listen;
    }

    
/**
     * Get the discovered events and listeners for the application.
     *
     * @return array
     */
    
public function getEvents()
    {
        if (
$this->app->eventsAreCached()) {
            
$cache = require $this->app->getCachedEventsPath();

            return 
$cache[get_class($this)] ?? [];
        } else {
            return 
array_merge_recursive(
                
$this->discoveredEvents(),
                
$this->listens()
            );
        }
    }

    
/**
     * Get the discovered events for the application.
     *
     * @return array
     */
    
protected function discoveredEvents()
    {
        return 
$this->shouldDiscoverEvents()
                    ? 
$this->discoverEvents()
                    : [];
    }

    
/**
     * Determine if events and listeners should be automatically discovered.
     *
     * @return bool
     */
    
public function shouldDiscoverEvents()
    {
        return 
false;
    }

    
/**
     * Discover the events and listeners for the application.
     *
     * @return array
     */
    
public function discoverEvents()
    {
        return 
collect($this->discoverEventsWithin())
                    ->
reject(function ($directory) {
                        return ! 
is_dir($directory);
                    })
                    ->
reduce(function ($discovered$directory) {
                        return 
array_merge_recursive(
                            
$discovered,
                            
DiscoverEvents::within($directory$this->eventDiscoveryBasePath())
                        );
                    }, []);
    }

    
/**
     * Get the listener directories that should be used to discover events.
     *
     * @return array
     */
    
protected function discoverEventsWithin()
    {
        return [
            
$this->app->path('Listeners'),
        ];
    }

    
/**
     * Get the base path to be used during event discovery.
     *
     * @return string
     */
    
protected function eventDiscoveryBasePath()
    {
        return 
base_path();
    }
}

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