!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php54/usr/share/pear/ezc/Base/metadata/   drwxr-xr-x
Free 294.54 GB of 429.69 GB (68.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tarball.php (4.01 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * File containing the ezcBaseMetaDataTarballReader class.
 *
 * @package Base
 * @version 1.8
 * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */
/**
 * Base class implements ways of fetching information about the installed
 * eZ Components when installed as tarball.
 *
 * @package Base
 * @version 1.8
 * @mainclass
 */
class ezcBaseMetaDataTarballReader
{
    
/**
     * Contains the handler to the XML file containing the release information.
     * @var SimpleXmlElement
     */
    
private $xml;

    
/**
     * Creates the reader object and opens the release-info file.
     */
    
public function __construct()
    {
        
$filename dirname__FILE__ ) . '/../../../release-info.xml';
        
$this->xml simplexml_load_file$filename );
    }

    
/**
     * Returns the version string for the installed eZ Components bundle.
     *
     * A version string such as "2008.2.2" is returned.
     *
     * @return string
     */
    
public function getBundleVersion()
    {
        return (string) 
$this->xml->version;
    }

    
/**
     * Returns a PHP version string that describes the required PHP version for
     * this installed eZ Components bundle.
     *
     * @return string
     */
    
public function getRequiredPhpVersion()
    {
        return (string) 
$this->xml->deps->php;
    }

    
/**
     * Returns whether $componentName is installed
     *
     * Returns true for every component that exists (because all of them are
     * then available).
     *
     * @return bool
     */
    
public function isComponentInstalled$componentName )
    {
        
$root $this->xml->deps->packages->package;

        foreach ( 
$root as $package )
        {
            if ( (string) 
$package['name'] == $componentName )
            {
                return 
true;
            }
        }
        return 
false;
    }

    
/**
     * Returns the version string of the available $componentName or false when
     * the component is not installed.
     *
     * @return string
     */
    
public function getComponentVersion$componentName )
    {
        
$root $this->xml->deps->packages->package;

        foreach ( 
$root as $package )
        {
            if ( (string) 
$package['name'] == $componentName )
            {
                return (string) 
$package['version'];
            }
        }
        return 
false;
    }

    
/**
     * Returns a list of components that $componentName depends on.
     *
     * If $componentName is left empty, all installed components are returned.
     *
     * The returned array has as keys the component names, and as values the
     * version of the components. It returns null of the $componentName
     * is not found.
     *
     * @return array(string=>string).
     */
    
public function getComponentDependencies$componentName null )
    {
        
$baseVersion false;
        
$root $this->xml->deps->packages;
        
$found $componentName === null true false;

        
// in case $componentName != null, we loop through all the components
        // in the file, and figure out the new root that we can list dependency
        // packages from.
        
foreach ( $root->package as $package )
        {
            if ( (string) 
$package['name'] == 'Base' )
            {
                
$baseVersion $package['version'];
            }
            if ( !
$found && (string) $package['name'] == $componentName )
            {
                
$root $package->deps;
                
$found true;
            }
        }

        if ( !
$found )
        {
            return 
null;
        }

        
// We always add the Base dependency even though it's not in the dependency file.
        
$deps = array();
        
$deps['Base'] = (string) $baseVersion;

        if ( !isset( 
$root->package ) )
        {
            return 
$deps;
        }
        foreach ( 
$root->package as $package )
        {
            
$deps[(string) $package['name']] = (string) $package['version'];
        }
        return 
$deps;
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0044 ]--