!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/data/classes/controls/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.56%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ViewFileDownloadField.php (3.57 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once getabspath("classes/controls/ViewFileField.php");
class 
ViewFileDownloadField extends ViewFileField
{
    public 
$sizeUnits = array();
    
    
/**
     * addJSFiles
     * Add control JS files to page object
     */
    
function __construct($field$container$pageobject)
    {
        
parent::__construct($field$container$pageobject);
        
$this->sizeUnits = array("KB""MB""GB""TB");
    }
    
    public function 
addJSFiles()
    {
        if(
$this->container->pSet->showThumbnail($this->field)){
            
$this->getJSControl();
        }
    }
    
    
/**
     * addCSSFiles
     * Add control CSS files to page object
     */ 
    
function addCSSFiles()
    {
    }
    
    public function 
showDBValue( &$data$keylink$html true )
    {
        
$value "";
        
$this->upload_handler->tkeys $keylink;
        
$filesArray $this->getFilesArray($data[$this->field]);
        
$showThumbnails $this->container->pSet->showThumbnail($this->field);
        
$isExport $this->container->pageType == PAGE_EXPORT
            
|| $this->container->forExport != ''

        foreach (
$filesArray as $file)
        {
            
$userFile $this->upload_handler->buildUserFile($file);
            if(!
$isExport)
            {
                
$value .= ($value != "" "<br>" "");
                if(
$showThumbnails && $userFile["thumbnail_url"] != "" && CheckImageExtension($file["name"])) 
                {
                    
$value .= "<a target=_blank href=\"".runner_htmlspecialchars($userFile["url"])."\" ><img  border='0'";
                    if(
$this->is508)
                        
$value .= " alt=\"".runner_htmlspecialchars($userFile["name"])."\"";
                    
$value .= " src=\"".runner_htmlspecialchars(GetRootPathForResources($userFile["thumbnail_url"]))."\" /></a>";
                }
                else if(
$this->container->pSet->showIcon($this->field)) 
                {
                    
$value .= '<a href="'.runner_htmlspecialchars($userFile["url"])
                        .
'"><img style="vertical-align: middle;" src="'.GetRootPathForResources('images/icons/'
                        
.$this->getFileIconByType($file["name"], $file["type"])).'" /></a>';
                }
            }
            
            if(
$this->container->pSet->showCustomExpr($this->field))
            {
                
$value .= fileCustomExpression($file$data$this->field$this->container->pageType$this->container->tName );
            }
            else
            {
                if(
$isExport)
                    
$value .= ($value != "" ", " "").$file["usrName"];
                else
                { 
                    if(
$showThumbnails && $userFile["thumbnail_url"] != "" && CheckImageExtension($file["name"]) && $value != ""
                    {
                        
$value .=  "<br />";
                    }
                    
                    
$label runner_htmlspecialchars($file["usrName"] != "" $file["usrName"] : $file["name"]);    
                    if(
$this->searchHighlight)
                    {
                        
$label $this->highlightSearchWord($labeltrue""); 
                    }                        
                    
$value .= '<a dir="LTR" href="'.runner_htmlspecialchars($userFile["url"]).'">'.$label.'</a>';                    
                }    
            }
            if(
$this->container->pSet->showFileSize($this->field))
            {
                
$fileSizeAndUnit $this->getFileSizeAndUnits($file["size"]);
                
$value .= " ".str_format_number(round($fileSizeAndUnit["size"], 2))
                    .
" ".$this->sizeUnits[$fileSizeAndUnit["unitIndex"]];
            }
        }
        return 
$value;
    }
    
    public function 
getFileSizeAndUnits($size$deepLevel 0)
    {
        
$shrinkedSize $size 1024;
        if(
$shrinkedSize 1024 && $deepLevel count($this->sizeUnits) - 1)
            return 
$this->getFileSizeAndUnits($shrinkedSize$deepLevel 1);
        return array(
"size" => $shrinkedSize"unitIndex" => $deepLevel);
    }
    
    public function 
getFileIconByType($file_name$fileType)
    {
        
$fileName "no_image.gif";
        if(
$fileType == "")
        {
            
$fileType getContentTypeByExtension(substr($file_namestrrpos($file_name'.')));
        }
        
        return 
getIconByFileType($fileType$file_name);
    }
}
?>

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