!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_tdfonline/php/3ros/guzzle/guzzle/guzzle/src/Guzzle/Http/Message/   drwxr-xr-x
Free 13.81 GB of 61.93 GB (22.29%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PostFile.php (2.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Guzzle\Http\Message;

use 
Guzzle\Common\Version;
use 
Guzzle\Common\Exception\InvalidArgumentException;
use 
Guzzle\Http\Mimetypes;

/**
 * POST file upload
 */
class PostFile implements PostFileInterface
{
    protected 
$fieldName;
    protected 
$contentType;
    protected 
$filename;
    protected 
$postname;

    
/**
     * @param string $fieldName   Name of the field
     * @param string $filename    Local path to the file
     * @param string $postname    Remote post file name
     * @param string $contentType Content-Type of the upload
     */
    
public function __construct($fieldName$filename$contentType null$postname null)
    {
        
$this->fieldName $fieldName;
        
$this->setFilename($filename);
        
$this->postname $postname $postname basename($filename);
        
$this->contentType $contentType ?: $this->guessContentType();
    }

    public function 
setFieldName($name)
    {
        
$this->fieldName $name;

        return 
$this;
    }

    public function 
getFieldName()
    {
        return 
$this->fieldName;
    }

    public function 
setFilename($filename)
    {
        
// Remove leading @ symbol
        
if (strpos($filename'@') === 0) {
            
$filename substr($filename1);
        }

        if (!
is_readable($filename)) {
            throw new 
InvalidArgumentException("Unable to open {$filename} for reading");
        }

        
$this->filename $filename;

        return 
$this;
    }

    public function 
setPostname($postname)
    {
        
$this->postname $postname;

        return 
$this;
    }

    public function 
getFilename()
    {
        return 
$this->filename;
    }

    public function 
getPostname()
    {
        return 
$this->postname;
    }

    public function 
setContentType($type)
    {
        
$this->contentType $type;

        return 
$this;
    }

    public function 
getContentType()
    {
        return 
$this->contentType;
    }

    public function 
getCurlValue()
    {
        
// PHP 5.5 introduced a CurlFile object that deprecates the old @filename syntax
        // See: https://wiki.php.net/rfc/curl-file-upload
        
if (function_exists('curl_file_create')) {
            return 
curl_file_create($this->filename$this->contentType$this->postname);
        }

        
// Use the old style if using an older version of PHP
        
$value "@{$this->filename};filename=" $this->postname;
        if (
$this->contentType) {
            
$value .= ';type=' $this->contentType;
        }

        return 
$value;
    }

    
/**
     * @deprecated
     * @codeCoverageIgnore
     */
    
public function getCurlString()
    {
        
Version::warn(__METHOD__ ' is deprecated. Use getCurlValue()');
        return 
$this->getCurlValue();
    }

    
/**
     * Determine the Content-Type of the file
     */
    
protected function guessContentType()
    {
        return 
Mimetypes::getInstance()->fromFilename($this->filename) ?: 'application/octet-stream';
    }
}

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