!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/Redis/Limiters/   drwxr-xr-x
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Redis\Limiters;

use 
Illuminate\Contracts\Redis\LimiterTimeoutException;
use 
Illuminate\Support\InteractsWithTime;

class 
ConcurrencyLimiterBuilder
{
    use 
InteractsWithTime;

    
/**
     * The Redis connection.
     *
     * @var \Illuminate\Redis\Connections\Connection
     */
    
public $connection;

    
/**
     * The name of the lock.
     *
     * @var string
     */
    
public $name;

    
/**
     * The maximum number of entities that can hold the lock at the same time.
     *
     * @var int
     */
    
public $maxLocks;

    
/**
     * The number of seconds to maintain the lock until it is automatically released.
     *
     * @var int
     */
    
public $releaseAfter 60;

    
/**
     * The amount of time to block until a lock is available.
     *
     * @var int
     */
    
public $timeout 3;

    
/**
     * Create a new builder instance.
     *
     * @param  \Illuminate\Redis\Connections\Connection  $connection
     * @param  string  $name
     * @return void
     */
    
public function __construct($connection$name)
    {
        
$this->name $name;
        
$this->connection $connection;
    }

    
/**
     * Set the maximum number of locks that can be obtained per time window.
     *
     * @param  int  $maxLocks
     * @return $this
     */
    
public function limit($maxLocks)
    {
        
$this->maxLocks $maxLocks;

        return 
$this;
    }

    
/**
     * Set the number of seconds until the lock will be released.
     *
     * @param  int  $releaseAfter
     * @return $this
     */
    
public function releaseAfter($releaseAfter)
    {
        
$this->releaseAfter $this->secondsUntil($releaseAfter);

        return 
$this;
    }

    
/**
     * Set the amount of time to block until a lock is available.
     *
     * @param  int  $timeout
     * @return $this
     */
    
public function block($timeout)
    {
        
$this->timeout $timeout;

        return 
$this;
    }

    
/**
     * Execute the given callback if a lock is obtained, otherwise call the failure callback.
     *
     * @param  callable  $callback
     * @param  callable|null  $failure
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Redis\LimiterTimeoutException
     */
    
public function then(callable $callback, callable $failure null)
    {
        try {
            return (new 
ConcurrencyLimiter(
                
$this->connection$this->name$this->maxLocks$this->releaseAfter
            
))->block($this->timeout$callback);
        } catch (
LimiterTimeoutException $e) {
            if (
$failure) {
                return 
$failure($e);
            }

            throw 
$e;
        }
    }
}

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