!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/jiff/vendor/tymon/jwt-auth/src/Providers/Storage/   drwxr-xr-x
Free 12.99 GB of 57.97 GB (22.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of jwt-auth.
 *
 * (c) Sean Tymon <tymon148@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tymon\JWTAuth\Providers\Storage;

use 
BadMethodCallException;
use 
Illuminate\Contracts\Cache\Repository as CacheContract;
use 
Psr\SimpleCache\CacheInterface as PsrCacheInterface;
use 
Tymon\JWTAuth\Contracts\Providers\Storage;

class 
Illuminate implements Storage
{
    
/**
     * The cache repository contract.
     *
     * @var \Illuminate\Contracts\Cache\Repository
     */
    
protected $cache;

    
/**
     * The used cache tag.
     *
     * @var string
     */
    
protected $tag 'tymon.jwt';

    
/**
     * @var bool
     */
    
protected $supportsTags;

    
/**
     * @var string|null
     */
    
protected $laravelVersion;

    
/**
     * Constructor.
     *
     * @param  \Illuminate\Contracts\Cache\Repository  $cache
     * @return void
     */
    
public function __construct(CacheContract $cache)
    {
        
$this->cache $cache;
    }

    
/**
     * Add a new item into storage.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @param  int  $minutes
     * @return void
     */
    
public function add($key$value$minutes)
    {
        
// If the laravel version is 5.8 or higher then convert minutes to seconds.
        
if ($this->laravelVersion !== null
            
&& is_int($minutes)
            && 
version_compare($this->laravelVersion'5.8''>=')
        ) {
            
$minutes $minutes 60;
        }

        
$this->cache()->put($key$value$minutes);
    }

    
/**
     * Add a new item into storage forever.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @return void
     */
    
public function forever($key$value)
    {
        
$this->cache()->forever($key$value);
    }

    
/**
     * Get an item from storage.
     *
     * @param  string  $key
     * @return mixed
     */
    
public function get($key)
    {
        return 
$this->cache()->get($key);
    }

    
/**
     * Remove an item from storage.
     *
     * @param  string  $key
     * @return bool
     */
    
public function destroy($key)
    {
        return 
$this->cache()->forget($key);
    }

    
/**
     * Remove all items associated with the tag.
     *
     * @return void
     */
    
public function flush()
    {
        
$this->cache()->flush();
    }

    
/**
     * Return the cache instance with tags attached.
     *
     * @return \Illuminate\Contracts\Cache\Repository
     */
    
protected function cache()
    {
        if (
$this->supportsTags === null) {
            
$this->determineTagSupport();
        }

        if (
$this->supportsTags) {
            return 
$this->cache->tags($this->tag);
        }

        return 
$this->cache;
    }

    
/**
     * Set the laravel version.
     */
    
public function setLaravelVersion($version)
    {
        
$this->laravelVersion $version;

        return 
$this;
    }

    
/**
     * Detect as best we can whether tags are supported with this repository & store,
     * and save our result on the $supportsTags flag.
     *
     * @return void
     */
    
protected function determineTagSupport()
    {
        
// Laravel >= 5.1.28
        
if (method_exists($this->cache'tags') || $this->cache instanceof PsrCacheInterface) {
            try {
                
// Attempt the repository tags command, which throws exceptions when unsupported
                
$this->cache->tags($this->tag);
                
$this->supportsTags true;
            } catch (
BadMethodCallException $ex) {
                
$this->supportsTags false;
            }
        } else {
            
// Laravel <= 5.1.27
            
if (method_exists($this->cache'getStore')) {
                
// Check for the tags function directly on the store
                
$this->supportsTags method_exists($this->cache->getStore(), 'tags');
            } else {
                
// Must be using custom cache repository without getStore(), and all bets are off,
                // or we are mocking the cache contract (in testing), which will not create a getStore method
                
$this->supportsTags false;
            }
        }
    }
}

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