!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/zendframework/zend-uri/src/   drwxrwxr-x
Free 15.68 GB of 61.93 GB (25.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     UriFactory.php (3.51 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Uri;

/**
 * URI Factory Class
 *
 * The URI factory can be used to generate URI objects from strings, using a
 * different URI subclass depending on the input URI scheme. New scheme-specific
 * classes can be registered using the registerScheme() method.
 *
 * Note that this class contains only static methods and should not be
 * instantiated
 */
abstract class UriFactory
{
    
/**
     * Registered scheme-specific classes
     *
     * @var array
     */
     
protected static $schemeClasses = array(
        
'http'   => 'Zend\Uri\Http',
        
'https'  => 'Zend\Uri\Http',
        
'mailto' => 'Zend\Uri\Mailto',
        
'file'   => 'Zend\Uri\File',
        
'urn'    => 'Zend\Uri\Uri',
        
'tag'    => 'Zend\Uri\Uri',
    );

    
/**
     * Register a scheme-specific class to be used
     *
     * @param string $scheme
     * @param string $class
     */
    
public static function registerScheme($scheme$class)
    {
        
$scheme strtolower($scheme);
        static::
$schemeClasses[$scheme] = $class;
    }

    
/**
     * Unregister a scheme
     *
     * @param string $scheme
     */
    
public static function unregisterScheme($scheme)
    {
        
$scheme strtolower($scheme);
        if (isset(static::
$schemeClasses[$scheme])) {
            unset(static::
$schemeClasses[$scheme]);
        }
    }

    
/**
     * Get the class name for a registered scheme
     *
     * If provided scheme is not registered, will return NULL
     *
     * @param  string $scheme
     * @return string|null
     */
    
public static function getRegisteredSchemeClass($scheme)
    {
        if (isset(static::
$schemeClasses[$scheme])) {
            return static::
$schemeClasses[$scheme];
        }

        return;
    }

    
/**
     * Create a URI from a string
     *
     * @param  string $uriString
     * @param  string $defaultScheme
     * @throws Exception\InvalidArgumentException
     * @return \Zend\Uri\Uri
     */
    
public static function factory($uriString$defaultScheme null)
    {
        if (!
is_string($uriString)) {
            throw new 
Exception\InvalidArgumentException(sprintf(
                
'Expecting a string, received "%s"',
                (
is_object($uriString) ? get_class($uriString) : gettype($uriString))
            ));
        }

        
$uri    = new Uri($uriString);
        
$scheme strtolower($uri->getScheme());
        if (!
$scheme && $defaultScheme) {
            
$scheme $defaultScheme;
        }

        if (
$scheme && ! isset(static::$schemeClasses[$scheme])) {
            throw new 
Exception\InvalidArgumentException(sprintf(
                
'no class registered for scheme "%s"',
                
$scheme
            
));
        }
        if (
$scheme && isset(static::$schemeClasses[$scheme])) {
            
$class = static::$schemeClasses[$scheme];
            
$uri = new $class($uri);
            if (! 
$uri instanceof UriInterface) {
                throw new 
Exception\InvalidArgumentException(
                    
sprintf(
                        
'class "%s" registered for scheme "%s" does not implement Zend\Uri\UriInterface',
                        
$class,
                        
$scheme
                    
)
                );
            }
        }

        return 
$uri;
    }
}

:: 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 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.2834 ]--