!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/usr/share/php/Fedora/Autoloader/   drwxr-xr-x
Free 9.26 GB of 93.48 GB (9.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Dependencies.php (3.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * This file is part of the Fedora Autoloader package.
 *
 * (c) Shawn Iwinski <shawn@iwin.ski> and Remi Collet <remi@fedoraproject.org>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Fedora\Autoloader;

class 
Dependencies
{
    
/* Already loaded dependencies */
    
public static $_loaded = array();

    
/**
     * Static functions only.
     */
    
private function __construct()
    {
    }

    
/**
     * Processes dependencies to require/load.
     *
     * - If dependency is not an array:
     *     - If dependency is required, it is only required/loaded if it exists,
     *       otherwise a `\RuntimeException` is thrown.
     *     - If dependency is not required, it is only required/loaded if it exists.
     * - If dependency is an array:
     *     - Loops through all items until the first item that exists is found and
     *       then it is required/loaded.  If no item is found and the dependency
     *       is required, the last item will be required/loaded if it exists,
     *       otherwise a `\RuntimeException` is thrown.
     *
     * See README for examples.
     *
     * @param array $dependencies Dependencies
     * @param bool  $required     Whether dependencies are required or not
     *
     * @throws \RuntimeException If required and no file is successfully loaded
     *                           via {@link requireFile()}
     */
    
protected static function process(array $dependencies$required)
    {
        foreach (
$dependencies as $dependency) {
            if (
is_array($dependency)) {
                
$dependencyLoaded false;

                foreach (
$dependency as $firstExistsDependency) {
                    if (
in_array($firstExistsDependencyself::$_loaded)) {
                        
$dependencyLoaded true;
                        break;
                    }
                }

                if (!
$dependencyLoaded) {
                    foreach (
$dependency as $firstExistsDependency) {
                        try {
                            
requireFile($firstExistsDependency);
                            
$dependencyLoaded true;
                            
self::$_loaded[] = $firstExistsDependency;
                            break;
                        } catch (\
RuntimeException $e) {
                        }
                    }
                }

                if (
$required && !$dependencyLoaded) {
                    throw new \
RuntimeException(sprintf(
                      
"Files not found: '%s'",
                      
implode("' || '"$dependency)
                    ));
                }
            } else {
                try {
                    
requireFile($dependency);
                    
self::$_loaded[] = $dependency;
                } catch (\
RuntimeException $e) {
                    if (
$required) {
                        throw 
$e;
                    }
                }
            }
        }
    }

    
/**
     * Requires dependency files.
     *
     * Calls `process($requiredDependencies, true)`.
     *
     * @param array $requiredDependencies Required dependencies
     *
     * @see process()
     */
    
public static function required(array $requiredDependencies)
    {
        static::
process($requiredDependenciestrue);
    }

    
/**
     * Optionally requires other dependency files if they exist.
     *
     * Calls `process($optionalDependencies, false)`.
     *
     * @param array $optionalDependencies Optional dependencies
     *
     * @see process()
     */
    
public static function optional(array $optionalDependencies)
    {
        static::
process($optionalDependenciesfalse);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0043 ]--