!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/doctrine/common/lib/Doctrine/Common/Proxy/   drwxr-xr-x
Free 13.1 GB of 57.97 GB (22.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Autoloader.php (2.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Doctrine\Common\Proxy;

use 
Doctrine\Common\Proxy\Exception\InvalidArgumentException;

/**
 * Special Autoloader for Proxy classes, which are not PSR-0 compliant.
 *
 * @author Benjamin Eberlei <kontakt@beberlei.de>
 *
 * @internal
 */
class Autoloader
{
    
/**
     * Resolves proxy class name to a filename based on the following pattern.
     *
     * 1. Remove Proxy namespace from class name.
     * 2. Remove namespace separators from remaining class name.
     * 3. Return PHP filename from proxy-dir with the result from 2.
     *
     * @param string $proxyDir
     * @param string $proxyNamespace
     * @param string $className
     *
     * @return string
     *
     * @throws InvalidArgumentException
     */
    
public static function resolveFile($proxyDir$proxyNamespace$className)
    {
        if (
!== strpos($className$proxyNamespace)) {
            throw 
InvalidArgumentException::notProxyClass($className$proxyNamespace);
        }

        
// remove proxy namespace from class name
        
$classNameRelativeToProxyNamespace substr($classNamestrlen($proxyNamespace));

        
// remove namespace separators from remaining class name
        
$fileName str_replace('\\'''$classNameRelativeToProxyNamespace);

        return 
$proxyDir DIRECTORY_SEPARATOR $fileName '.php';
    }

    
/**
     * Registers and returns autoloader callback for the given proxy dir and namespace.
     *
     * @param string        $proxyDir
     * @param string        $proxyNamespace
     * @param callable|null $notFoundCallback Invoked when the proxy file is not found.
     *
     * @return \Closure
     *
     * @throws InvalidArgumentException
     */
    
public static function register($proxyDir$proxyNamespace$notFoundCallback null)
    {
        
$proxyNamespace ltrim($proxyNamespace'\\');

        if ( ! (
null === $notFoundCallback || is_callable($notFoundCallback))) {
            throw 
InvalidArgumentException::invalidClassNotFoundCallback($notFoundCallback);
        }

        
$autoloader = function ($className) use ($proxyDir$proxyNamespace$notFoundCallback) {
            if (
=== strpos($className$proxyNamespace)) {
                
$file Autoloader::resolveFile($proxyDir$proxyNamespace$className);

                if (
$notFoundCallback && ! file_exists($file)) {
                    
call_user_func($notFoundCallback$proxyDir$proxyNamespace$className);
                }

                require 
$file;
            }
        };

        
spl_autoload_register($autoloader);

        return 
$autoloader;
    }
}

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