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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of SwiftMailer.
 * (c) 2004-2009 Chris Corbyn
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * An attachment, in a multipart message.
 *
 * @author Chris Corbyn
 */
class Swift_Mime_Attachment extends Swift_Mime_SimpleMimeEntity
{
    
/** Recognized MIME types */
    
private $_mimeTypes = array();

    
/**
     * Create a new Attachment with $headers, $encoder and $cache.
     *
     * @param Swift_Mime_HeaderSet      $headers
     * @param Swift_Mime_ContentEncoder $encoder
     * @param Swift_KeyCache            $cache
     * @param Swift_Mime_Grammar        $grammar
     * @param array                     $mimeTypes optional
     */
    
public function __construct(Swift_Mime_HeaderSet $headersSwift_Mime_ContentEncoder $encoderSwift_KeyCache $cacheSwift_Mime_Grammar $grammar$mimeTypes = array())
    {
        
parent::__construct($headers$encoder$cache$grammar);
        
$this->setDisposition('attachment');
        
$this->setContentType('application/octet-stream');
        
$this->_mimeTypes $mimeTypes;
    }

    
/**
     * Get the nesting level used for this attachment.
     *
     * Always returns {@link LEVEL_MIXED}.
     *
     * @return int
     */
    
public function getNestingLevel()
    {
        return 
self::LEVEL_MIXED;
    }

    
/**
     * Get the Content-Disposition of this attachment.
     *
     * By default attachments have a disposition of "attachment".
     *
     * @return string
     */
    
public function getDisposition()
    {
        return 
$this->_getHeaderFieldModel('Content-Disposition');
    }

    
/**
     * Set the Content-Disposition of this attachment.
     *
     * @param string $disposition
     *
     * @return Swift_Mime_Attachment
     */
    
public function setDisposition($disposition)
    {
        if (!
$this->_setHeaderFieldModel('Content-Disposition'$disposition)) {
            
$this->getHeaders()->addParameterizedHeader('Content-Disposition'$disposition);
        }

        return 
$this;
    }

    
/**
     * Get the filename of this attachment when downloaded.
     *
     * @return string
     */
    
public function getFilename()
    {
        return 
$this->_getHeaderParameter('Content-Disposition''filename');
    }

    
/**
     * Set the filename of this attachment.
     *
     * @param string $filename
     *
     * @return Swift_Mime_Attachment
     */
    
public function setFilename($filename)
    {
        
$this->_setHeaderParameter('Content-Disposition''filename'$filename);
        
$this->_setHeaderParameter('Content-Type''name'$filename);

        return 
$this;
    }

    
/**
     * Get the file size of this attachment.
     *
     * @return int
     */
    
public function getSize()
    {
        return 
$this->_getHeaderParameter('Content-Disposition''size');
    }

    
/**
     * Set the file size of this attachment.
     *
     * @param int $size
     *
     * @return Swift_Mime_Attachment
     */
    
public function setSize($size)
    {
        
$this->_setHeaderParameter('Content-Disposition''size'$size);

        return 
$this;
    }

    
/**
     * Set the file that this attachment is for.
     *
     * @param Swift_FileStream $file
     * @param string           $contentType optional
     *
     * @return Swift_Mime_Attachment
     */
    
public function setFile(Swift_FileStream $file$contentType null)
    {
        
$this->setFilename(basename($file->getPath()));
        
$this->setBody($file$contentType);
        if (!isset(
$contentType)) {
            
$extension strtolower(substr($file->getPath(), strrpos($file->getPath(), '.') + 1));

            if (
array_key_exists($extension$this->_mimeTypes)) {
                
$this->setContentType($this->_mimeTypes[$extension]);
            }
        }

        return 
$this;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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