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


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

namespace Illuminate\Cache;

use 
Illuminate\Redis\Connections\PhpRedisConnection;
use 
Redis;
use 
UnexpectedValueException;

class 
PhpRedisLock extends RedisLock
{
    
/**
     * Create a new phpredis lock instance.
     *
     * @param  \Illuminate\Redis\Connections\PhpRedisConnection  $redis
     * @param  string  $name
     * @param  int  $seconds
     * @param  string|null  $owner
     * @return void
     */
    
public function __construct(PhpRedisConnection $redisstring $nameint $seconds, ?string $owner null)
    {
        
parent::__construct($redis$name$seconds$owner);
    }

    
/**
     * {@inheritDoc}
     */
    
public function release()
    {
        return (bool) 
$this->redis->eval(
            
LuaScripts::releaseLock(),
            
1,
            
$this->name,
            
$this->serializedAndCompressedOwner()
        );
    }

    
/**
     * Get the owner key, serialized and compressed.
     *
     * @return string
     */
    
protected function serializedAndCompressedOwner(): string
    
{
        
$client $this->redis->client();

        
$owner $client->_serialize($this->owner);

        
// https://github.com/phpredis/phpredis/issues/1938
        
if ($this->compressed()) {
            if (
$this->lzfCompressed()) {
                
$owner \lzf_compress($owner);
            } elseif (
$this->zstdCompressed()) {
                
$owner \zstd_compress($owner$client->getOption(Redis::OPT_COMPRESSION_LEVEL));
            } elseif (
$this->lz4Compressed()) {
                
$owner \lz4_compress($owner$client->getOption(Redis::OPT_COMPRESSION_LEVEL));
            } else {
                throw new 
UnexpectedValueException(sprintf(
                    
'Unknown phpredis compression in use [%d]. Unable to release lock.',
                    
$client->getOption(Redis::OPT_COMPRESSION)
                ));
            }
        }

        return 
$owner;
    }

    
/**
     * Determine if compression is enabled.
     *
     * @return bool
     */
    
protected function compressed(): bool
    
{
        return 
$this->redis->client()->getOption(Redis::OPT_COMPRESSION) !== Redis::COMPRESSION_NONE;
    }

    
/**
     * Determine if LZF compression is enabled.
     *
     * @return bool
     */
    
protected function lzfCompressed(): bool
    
{
        return 
defined('Redis::COMPRESSION_LZF') &&
               
$this->redis->client()->getOption(Redis::OPT_COMPRESSION) === Redis::COMPRESSION_LZF;
    }

    
/**
     * Determine if ZSTD compression is enabled.
     *
     * @return bool
     */
    
protected function zstdCompressed(): bool
    
{
        return 
defined('Redis::COMPRESSION_ZSTD') &&
               
$this->redis->client()->getOption(Redis::OPT_COMPRESSION) === Redis::COMPRESSION_ZSTD;
    }

    
/**
     * Determine if LZ4 compression is enabled.
     *
     * @return bool
     */
    
protected function lz4Compressed(): bool
    
{
        return 
defined('Redis::COMPRESSION_LZ4') &&
               
$this->redis->client()->getOption(Redis::OPT_COMPRESSION) === Redis::COMPRESSION_LZ4;
    }
}

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