!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/cloud_campaign/vendor/laravel/framework/src/Illuminate/Console/Scheduling/   drwxr-xr-x
Free 12.99 GB of 57.97 GB (22.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Console\Scheduling;

use 
Illuminate\Contracts\Container\Container;
use 
Illuminate\Support\Reflector;
use 
InvalidArgumentException;
use 
LogicException;
use 
Throwable;

class 
CallbackEvent extends Event
{
    
/**
     * The callback to call.
     *
     * @var string
     */
    
protected $callback;

    
/**
     * The parameters to pass to the method.
     *
     * @var array
     */
    
protected $parameters;

    
/**
     * Create a new event instance.
     *
     * @param  \Illuminate\Console\Scheduling\EventMutex  $mutex
     * @param  string  $callback
     * @param  array  $parameters
     * @param  \DateTimeZone|string|null  $timezone
     * @return void
     *
     * @throws \InvalidArgumentException
     */
    
public function __construct(EventMutex $mutex$callback, array $parameters = [], $timezone null)
    {
        if (! 
is_string($callback) && ! Reflector::isCallable($callback)) {
            throw new 
InvalidArgumentException(
                
'Invalid scheduled callback event. Must be a string or callable.'
            
);
        }

        
$this->mutex $mutex;
        
$this->callback $callback;
        
$this->parameters $parameters;
        
$this->timezone $timezone;
    }

    
/**
     * Run the given event.
     *
     * @param  \Illuminate\Contracts\Container\Container  $container
     * @return mixed
     *
     * @throws \Exception
     */
    
public function run(Container $container)
    {
        if (
$this->description && $this->withoutOverlapping &&
            ! 
$this->mutex->create($this)) {
            return;
        }

        
$pid getmypid();

        
register_shutdown_function(function () use ($pid) {
            if (
$pid === getmypid()) {
                
$this->removeMutex();
            }
        });

        
parent::callBeforeCallbacks($container);

        try {
            
$response is_object($this->callback)
                        ? 
$container->call([$this->callback'__invoke'], $this->parameters)
                        : 
$container->call($this->callback$this->parameters);

            
$this->exitCode $response === false 0;
        } catch (
Throwable $e) {
            
$this->exitCode 1;

            throw 
$e;
        } finally {
            
$this->removeMutex();

            
parent::callAfterCallbacks($container);
        }

        return 
$response;
    }

    
/**
     * Clear the mutex for the event.
     *
     * @return void
     */
    
protected function removeMutex()
    {
        if (
$this->description && $this->withoutOverlapping) {
            
$this->mutex->forget($this);
        }
    }

    
/**
     * Do not allow the event to overlap each other.
     *
     * @param  int  $expiresAt
     * @return $this
     *
     * @throws \LogicException
     */
    
public function withoutOverlapping($expiresAt 1440)
    {
        if (! isset(
$this->description)) {
            throw new 
LogicException(
                
"A scheduled event name is required to prevent overlapping. Use the 'name' method before 'withoutOverlapping'."
            
);
        }

        
$this->withoutOverlapping true;

        
$this->expiresAt $expiresAt;

        return 
$this->skip(function () {
            return 
$this->mutex->exists($this);
        });
    }

    
/**
     * Allow the event to only run on one server for each cron expression.
     *
     * @return $this
     *
     * @throws \LogicException
     */
    
public function onOneServer()
    {
        if (! isset(
$this->description)) {
            throw new 
LogicException(
                
"A scheduled event name is required to only run on one server. Use the 'name' method before 'onOneServer'."
            
);
        }

        
$this->onOneServer true;

        return 
$this;
    }

    
/**
     * Get the mutex name for the scheduled command.
     *
     * @return string
     */
    
public function mutexName()
    {
        return 
'framework/schedule-'.sha1($this->description);
    }

    
/**
     * Get the summary of the event for display.
     *
     * @return string
     */
    
public function getSummaryForDisplay()
    {
        if (
is_string($this->description)) {
            return 
$this->description;
        }

        return 
is_string($this->callback) ? $this->callback 'Callback';
    }
}

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