!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/main_file/vendor/aws/aws-sdk-php/src/Api/   drwxr-xr-x
Free 13.05 GB of 57.97 GB (22.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     DocModel.php (3.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Aws\Api;

/**
 * Encapsulates the documentation strings for a given service-version and
 * provides methods for extracting the desired parts related to a service,
 * operation, error, or shape (i.e., parameter).
 */
class DocModel
{
    
/** @var array */
    
private $docs;

    
/**
     * @param array $docs
     *
     * @throws \RuntimeException
     */
    
public function __construct(array $docs)
    {
        if (!
extension_loaded('tidy')) {
            throw new 
\RuntimeException('The "tidy" PHP extension is required.');
        }

        
$this->docs $docs;
    }

    
/**
     * Convert the doc model to an array.
     *
     * @return array
     */
    
public function toArray()
    {
        return 
$this->docs;
    }

    
/**
     * Retrieves documentation about the service.
     *
     * @return null|string
     */
    
public function getServiceDocs()
    {
        return isset(
$this->docs['service']) ? $this->docs['service'] : null;
    }

    
/**
     * Retrieves documentation about an operation.
     *
     * @param string $operation Name of the operation
     *
     * @return null|string
     */
    
public function getOperationDocs($operation)
    {
        return isset(
$this->docs['operations'][$operation])
            ? 
$this->docs['operations'][$operation]
            : 
null;
    }

    
/**
     * Retrieves documentation about an error.
     *
     * @param string $error Name of the error
     *
     * @return null|string
     */
    
public function getErrorDocs($error)
    {
        return isset(
$this->docs['shapes'][$error]['base'])
            ? 
$this->docs['shapes'][$error]['base']
            : 
null;
    }

    
/**
     * Retrieves documentation about a shape, specific to the context.
     *
     * @param string $shapeName  Name of the shape.
     * @param string $parentName Name of the parent/context shape.
     * @param string $ref        Name used by the context to reference the shape.
     *
     * @return null|string
     */
    
public function getShapeDocs($shapeName$parentName$ref)
    {
        if (!isset(
$this->docs['shapes'][$shapeName])) {
            return 
'';
        }

        
$result '';
        
$d $this->docs['shapes'][$shapeName];
        if (isset(
$d['refs']["{$parentName}\$${ref}"])) {
            
$result $d['refs']["{$parentName}\$${ref}"];
        } elseif (isset(
$d['base'])) {
            
$result $d['base'];
        }

        if (isset(
$d['append'])) {
            if (!isset(
$d['excludeAppend'])
                || !
in_array($parentName$d['excludeAppend'])
            ) {
                
$result .= $d['append'];
            }
        }

        if (isset(
$d['appendOnly'])
           && 
in_array($parentName$d['appendOnly']['shapes'])
        ) {
            
$result .= $d['appendOnly']['message'];
        }

        return 
$this->clean($result);
    }

    private function 
clean($content)
    {
        if (!
$content) {
            return 
'';
        }

        
$tidy = new \tidy();
        
$tidy->parseString($content, [
            
'indent' => true,
            
'doctype' => 'omit',
            
'output-html' => true,
            
'show-body-only' => true,
            
'drop-empty-paras' => true,
            
'drop-font-tags' => true,
            
'drop-proprietary-attributes' => true,
            
'hide-comments' => true,
            
'logical-emphasis' => true
        
]);
        
$tidy->cleanRepair();

        return (string) 
$content;
    }
}

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